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

Update generative-ai/function-calling code sample to remove role from FunctionResponse #11324

Merged
merged 1 commit into from
Mar 21, 2024

Conversation

koverholt
Copy link
Member

Description

Fixes #11323 to remove the role from the FunctionResponse turn since Gemini does not validate the role field nor use the role field.

Checklist

@koverholt koverholt requested review from a team as code owners March 20, 2024 20:39
@product-auto-label product-auto-label bot added the samples Issues that are directly related to samples. label Mar 20, 2024
@koverholt koverholt changed the title Remove role="user" from FunctionResponse Update generative-ai/function-calling code sample to remove role from FunctionResponse Mar 20, 2024
@kweinmeister kweinmeister merged commit 6356825 into main Mar 21, 2024
15 checks passed
@kweinmeister kweinmeister deleted the function-calling-remove-role branch March 21, 2024 00:32
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
samples Issues that are directly related to samples.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Update generative-ai/function-calling to remove role from FunctionResponse
2 participants