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

core[patch]: make oai tool description optional #27756

Merged
merged 6 commits into from
Nov 6, 2024

Conversation

baskaryan
Copy link
Collaborator

No description provided.

@dosubot dosubot bot added the size:L This PR changes 100-499 lines, ignoring generated files. label Oct 30, 2024
Copy link

vercel bot commented Oct 30, 2024

The latest updates on your projects. Learn more about Vercel for Git ↗︎

1 Skipped Deployment
Name Status Preview Comments Updated (UTC)
langchain ⬜️ Ignored (Inspect) Visit Preview Nov 6, 2024 6:04pm

@dosubot dosubot bot added the langchain Related to the langchain package label Oct 30, 2024
Copy link
Collaborator

@ccurme ccurme left a 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 = ""
Copy link
Collaborator

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?

@dosubot dosubot bot added the lgtm PR looks good. Use to confirm that a PR is ready for merging. label Oct 31, 2024
@baskaryan baskaryan enabled auto-merge (squash) November 6, 2024 18:04
@baskaryan baskaryan merged commit 67ce05a into master Nov 6, 2024
78 checks passed
@baskaryan baskaryan deleted the bagatur/oai_tool_desc_optional branch November 6, 2024 18:06
yanomaly pushed a commit to yanomaly/langchain that referenced this pull request Nov 8, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
langchain Related to the langchain package lgtm PR looks good. Use to confirm that a PR is ready for merging. size:L This PR changes 100-499 lines, ignoring generated files.
Projects
Archived in project
Development

Successfully merging this pull request may close these issues.

2 participants