Repository navigation
feat: add support for OpenAI batch processing - #1479
Merged
diegosouzapw merged 2 commits intoApr 21, 2026
Merged
diegosouzapw merged 2 commits into
diegosouzapw merged 2 commits into
Conversation
Contributor
There was a problem hiding this comment.
Code Review
This pull request implements a comprehensive batch processing system and file management API, including database migrations, background polling services, and REST endpoints for batch and file operations. It also adds support for persistent API keys via environment variables. Feedback focuses on optimizing database performance by throttling batch updates, improving memory efficiency when handling large file uploads, and fixing potential storage leaks in the cleanup logic. Additionally, it is recommended to handle potential unhandled promise rejections in the asynchronous batch item processing to ensure system stability.
diegosouzapw
merged commit Apr 21, 2026
8bb1c83
into
cheaper-inference:release/v3.7.0
2 checks passed
This was referenced Apr 21, 2026
Merged
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
I've added backend support for OpenAI-compatible batching.
https://developers.openai.com/api/reference/resources/batches/methods/create
Validation
npm run lintnpm run test:unitnpm run test:coverage>= 60%for statements, lines, functions, and branchesTests Added Or Updated
I've added .http test to test the actual endpoints for the API. I've also added integration and unit-tests.
Coverage Notes
I've added testcases for all affected code and new code
Reviewer Notes
https://docs.mistral.ai/api/endpoint/batch