Repository navigation
fix(openai): improve API compat and tidy SSE framing - #20
Merged
Merged
Conversation
AmazingAng
added a commit
that referenced
this pull request
May 2, 2026
Brings in PR #20 (fix(openai): improve API compat and tidy SSE framing): - translator.ts: SSE framing ("data: ...\n\n") is now produced inside the translator's makeChunk / [DONE] handler instead of by the caller. Drop the now-redundant ".map((c) => `data: ${c}\n\n`)" wrapper in createChatCompletionsHandler's anthropic-translation streaming path so we don't end up with a double "data:" prefix. - translator.ts: support reasoning_effort: "minimal", treat OpenAI "developer" role like "system", inject a system hint when the client asks for response_format: { type: "json_object" } (Chat) or text.format: { type: "json_object" } (Responses), and honor multiple Responses "system" items. - README/README_CN: keep our richer multi-provider/Codex/Cursor docs and per-account reload docs; absorb the new "Structured JSON output" feature bullet and "request statistics" wording from main. 187/187 tests still green; build clean. Co-authored-by: Cursor <[email protected]>
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.
No description provided.