Skip to content

fix: preserve chat completions response shape for Codex OAuth - #127

Merged
ADD-SP merged 3 commits into
runta-dev:mainfrom
highclaws-com:main
Apr 29, 2026
Merged

ADD-SP merged 3 commits into
runta-dev:mainfrom
highclaws-com:main

Conversation

@w32zhong

Copy link
Copy Markdown
Contributor

Translate upstream Responses API SSE bodies into non-streaming chat/completions JSON when the client did not request streaming. Only return SSE when the original request uses stream=true.

Also stop forwarding stream_options to the Codex Responses API, since that parameter is rejected upstream.

Translate upstream Responses API SSE bodies into non-streaming chat/completions JSON when the client did not request streaming. Only return SSE when the original request uses stream=true.

Also stop forwarding stream_options to the Codex Responses API, since that parameter is rejected upstream.
@ADD-SP
ADD-SP self-requested a review April 28, 2026 18:15

@ADD-SP ADD-SP left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks!

@ADD-SP
ADD-SP merged commit b5adbd3 into runta-dev:main Apr 29, 2026
4 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.

2 participants