Skip to content
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

add strict parameter to function definition #827

Closed

Conversation

jsingle
Copy link

@jsingle jsingle commented Aug 15, 2024

Describe the change
This supports the "function calling" aspect of https://openai.com/index/introducing-structured-outputs-in-the-api/

Other PRs address the response_format part, but I haven't seen one for this yet?

Provide OpenAI documentation link
https://openai.com/index/introducing-structured-outputs-in-the-api/
https://platform.openai.com/docs/api-reference/chat/create#chat-create-tools

Describe your solution
This seems like a dead simple change, unless I'm missing something?

#814

@jsingle
Copy link
Author

jsingle commented Aug 15, 2024

strict is only supported in tools. So the required change is a bit larger

@jsingle jsingle closed this Aug 15, 2024
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.

1 participant