-
Notifications
You must be signed in to change notification settings - Fork 1.9k
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
Conversation
this looks great - can you please fix lint and i can merge? |
Any progress for this PR? |
Im waiting on this to be merged :( I opened an issue if someone could help me? Sorry if this is not the place |
…tionaries instead of custom ChoiceDelta objects
hi! my bad. I didn't check the pytest version. I will update soon |
for better readability, I also modified the tests/test_reasoning to include some functions, but it may fail some lints.. which i might need to work on |
@rm-openai Oh I was wondering what the problem is, and found out that my tool is based on pytest, while the actual check was based on ruff (via uv run ruff). This led to automatic unsolvable pull.. Hold up for few minutes. my bad |
…eam_response functions.
dcdd038
to
39963a8
Compare
I updated the branch to up-to-date, which now should set the mandatory param "prompt" = None for functions get_response and stream_response. |
my personal update on #494
Key changes:
ResponseReasoningItem
to use the correct structure withid
,summary
, andtype="reasoning"
fieldsResponseReasoningSummaryPartAddedEvent
to includesummary_index
parameter and use a dictionary for thepart
parameterResponseReasoningSummaryTextDeltaEvent
to includesummary_index
parameterResponseReasoningSummaryPartDoneEvent
to includesummary_index
and use a dictionary forpart
Summary
object is accessed in tests (using.text
property instead of subscript notation)chatcmpl_converter.py
to use theSummary
class instead of a dictionary for better handlignFixes #494