-
Notifications
You must be signed in to change notification settings - Fork 15.9k
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
core[patch]: make oai tool description optional #27756
Conversation
The latest updates on your projects. Learn more about Vercel for Git ↗︎ 1 Skipped Deployment
|
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.
Curious when these became optional (Dec '23? https://platform.openai.com/docs/changelog)
@@ -420,6 +424,9 @@ def convert_to_openai_function( | |||
raise ValueError(msg) | |||
|
|||
if strict is not None: | |||
if "strict" in oai_function and oai_function["strict"] != strict: | |||
msg = "" |
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.
Should we update this error message?
No description provided.