Skip to content

fix(openai): improve API compat and tidy SSE framing - #20

Merged
CallOrRet merged 1 commit into
AmazingAng:mainfrom
CallOrRet:main
Apr 25, 2026
Merged

CallOrRet merged 1 commit into
AmazingAng:mainfrom
CallOrRet:main

Conversation

@CallOrRet

Copy link
Copy Markdown
Collaborator

No description provided.

@CallOrRet
CallOrRet merged commit 8054e5d into AmazingAng:main Apr 25, 2026
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]>
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.

1 participant