Skip to content

Conversation

neokn
Copy link

@neokn neokn commented Oct 6, 2025

This commit adds support for handling reasoning_content in both streaming and non-streaming for OpenAI Compatible API Chat Completions responses, allowing models that support reasoning_content to properly return their reasoning traces.

CHANGELOG:

  • Add reasoning_content handling in fromOpenAIChoice
  • Add reasoning_content handling in fromOpenAIChunkChoice
  • Add test cases for reasoning_content in both functions

Description here... Help the reviewer by:
OpenAI it self not support reasoning_content but

support reasoning_content when using reasoning model

Checklist (if applicable):

Copy link

google-cla bot commented Oct 6, 2025

Thanks for your pull request! It looks like this may be your first contribution to a Google open source project. Before we can look at your pull request, you'll need to sign a Contributor License Agreement (CLA).

View this failed invocation of the CLA check for more information.

For the most up to date status, view the checks section at the bottom of the pull request.

@github-actions github-actions bot added the js label Oct 6, 2025
This commit adds support for handling reasoning_content in both streaming
and non-streaming for OpenAI Compatible API Chat Completions responses, allowing models that support reasoning_content
to properly return their reasoning traces.

CHANGELOG:
  - [x] Add reasoning_content handling in fromOpenAIChoice
  - [x] Add reasoning_content handling in fromOpenAIChunkChoice
  - [x] Add test cases for reasoning_content in both functions
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
Status: Done
Development

Successfully merging this pull request may close these issues.

1 participant