-
Notifications
You must be signed in to change notification settings - Fork 2
[FEATURE] Add --json-response flag for structured API responses #113
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
Adds a new CLI flag that enables JSON response formatting: - Adds json_response field to RequestFuncInput model - Modifies OpenAI backend to apply JSON formatting when flag is enabled - Includes response_format and chat_template_kwargs settings - Prompts model to avoid premature JSON closure
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.
Also please update the README with the new flags
@jasonlizhengjian |
@vadiklyutiy It's ready for review |
Ben asked some changes above |
requested changes have already been implemented |
Adds a new CLI flag that enables JSON response formatting: