Skip to content

Declare batched input support for OpenAI embeddings#2145

Open
liuzemei wants to merge 1 commit into
symfony:mainfrom
liuzemei:fix-openai-embedding-input-multiple
Open

Declare batched input support for OpenAI embeddings#2145
liuzemei wants to merge 1 commit into
symfony:mainfrom
liuzemei:fix-openai-embedding-input-multiple

Conversation

@liuzemei

@liuzemei liuzemei commented Jun 8, 2026

Copy link
Copy Markdown
Q A
Bug fix? yes
New feature? no
Docs? no
Issues Fix #2127
License MIT

OpenAI embedding models accept an array input and the existing model client forwards array payloads correctly. This adds Capability::INPUT_MULTIPLE to the OpenAI embedding catalog entries so vectorization can use a single batched request for multiple strings.

Tests:

./vendor/bin/phpunit Tests/ModelCatalogTest.php
./vendor/bin/phpunit Tests/Embeddings/ModelClientTest.php
./vendor/bin/phpunit
./vendor/bin/phpstan analyse --no-progress --memory-limit=1G

@carsonbot carsonbot added Bug Something isn't working Status: Needs Review labels Jun 8, 2026
@carsonbot carsonbot changed the title Declare batched input support for OpenAI embeddings Declare batched input support for OpenAI embeddings Jun 8, 2026
@liuzemei liuzemei changed the title Declare batched input support for OpenAI embeddings Declare batched input support for OpenAI embeddings Jun 8, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Bug Something isn't working Status: Needs Review

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[Platform] Declare INPUT_MULTIPLE capability for OpenAI embedding models

3 participants