Skip to content

fix(js): Support /v1/embeddings endpoint in OpenAI batch instrumentation - #2478

Merged
Luca Forstner (lforst) merged 3 commits into
braintrustdata:mainfrom
Tyagiquamar:fix/openai-batch-embeddings-support
Sep 17, 2026
Merged

Luca Forstner (lforst) merged 3 commits into
braintrustdata:mainfrom
Tyagiquamar:fix/openai-batch-embeddings-support

Conversation

@Tyagiquamar

Copy link
Copy Markdown
Contributor

Fixes #2425. Adds /v1/embeddings to SUPPORTED_ENDPOINTS in js/src/instrumentation/plugins/openai-batch-instrumentation.ts. Previously, /v1/embeddings batch requests were rejected as invalid records by readBatchInputs, resulting in zero span tracing for batch embeddings jobs. Included unit test coverage.

@lforst Luca Forstner (lforst) changed the title fix(js): support /v1/embeddings endpoint in OpenAI batch instrumentation (#2425) fix(js): Support /v1/embeddings endpoint in OpenAI batch instrumentation (#2425) Sep 16, 2026
@lforst Luca Forstner (lforst) changed the title fix(js): Support /v1/embeddings endpoint in OpenAI batch instrumentation (#2425) fix(js): Support /v1/embeddings endpoint in OpenAI batch instrumentation Sep 16, 2026
@lforst

Copy link
Copy Markdown
Member

Thanks!

@lforst
Luca Forstner (lforst) merged commit 74fe3df into braintrustdata:main Sep 17, 2026
52 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[bot] OpenAI Batch instrumentation silently drops /v1/embeddings batch requests

2 participants