Skip to content

genai:Make legacy function calling kwarg function_call optional #918

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

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

lolamathematician
Copy link

Set default to False as it is legacy
Included and updated tests

PR Description

Adds option to not include (legacy) function calls in additional_kwargs in addition to tool calls. Other providers can raise an error if these are present in their calls.

This can come up if providers are mixed in a tool-calling loop.

We add a new optional flag to the ChatGoogleGenerativeAI model. Default to False for forward looking change.

Updated tests and added specific test for this change.

Type

🐛 Bug Fix
✅ Test

Set default to False as it is legacy
Included and updated tests
@lkuligin
Copy link
Collaborator

@lolamathematician linter if failing, could you double-check, please?

plus, I don't think we should move test outside of "integration" or "unit" folders.

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.

2 participants