Skip to content

Add reasoning content - fix on #494 #871

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 2 commits into
base: main
Choose a base branch
from

Conversation

axion66
Copy link

@axion66 axion66 commented Jun 15, 2025

my personal update on #494

Key changes:

  • Updated ResponseReasoningItem to use the correct structure with id, summary, and type="reasoning" fields
  • Fixed ResponseReasoningSummaryPartAddedEvent to include summary_index parameter and use a dictionary for the part parameter
  • Fixed ResponseReasoningSummaryTextDeltaEvent to include summary_index parameter
  • Updated ResponseReasoningSummaryPartDoneEvent to include summary_index and use a dictionary for part
  • Changed how the Summary object is accessed in tests (using .text property instead of subscript notation)
  • Updated chatcmpl_converter.py to use the Summary class instead of a dictionary for better handlign

Fixes #494

@rm-openai
Copy link
Collaborator

this looks great - can you please fix lint and i can merge?

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