-
Notifications
You must be signed in to change notification settings - Fork 2.6k
enhancement: support flattened verbosity generation_kwarg for OpenAIResponsesChatGenerator #10436
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
enhancement: support flattened verbosity generation_kwarg for OpenAIResponsesChatGenerator #10436
Conversation
…esponsesChatGenerator
|
The latest updates on your projects. Learn more about Vercel for GitHub. 1 Skipped Deployment
|
Pull Request Test Coverage Report for Build 21282692151Details
💛 - Coveralls |
| reasoning_effort = generation_kwargs.pop("reasoning_effort", None) | ||
| if reasoning_effort is not None: |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Just some better null value handling. I.e. don't set it to the nested structure if the user set it to None.
| # if `text_format` is provided, we use the `parse` endpoint for response type parsing | ||
| if generation_kwargs.get("text_format"): | ||
| # if both `text_format` and `text` are provided, `text_format` takes precedence | ||
| # and json schema passed to `text` is ignored |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Was this a bug?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I see that it was based on your release note
sjrl
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks good!
Related Issues
Proposed Changes:
verbositygeneration_kwarg for OpenAIResponsesChatGeneratorOpenAI.responses.parsewhen notext_formattype is given (to convert the response into this type)How did you test it?
Notes for the reviewer
Checklist
fix:,feat:,build:,chore:,ci:,docs:,style:,refactor:,perf:,test:and added!in case the PR includes breaking changes.