-
Notifications
You must be signed in to change notification settings - Fork 2.7k
feat: enable native tool calling for gemini provider #9343
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
Conversation
Review complete for the latest Gemini native tool calling changes. No new issues were identified; previously flagged concerns remain resolved.
Mention @roomote in a comment to request specific changes to this pull request or fix all unresolved issues. |
d6bd20b to
88b3f74
Compare
Reviewing your PR now. Feedback coming soon! |
bb1973d to
b4e50fb
Compare
935e817 to
7aa1152
Compare
de15baf to
c8f7bf4
Compare
|
@hannesrudolph does this detect Gemini over OpenAI compatible provider? |
Nope. It's running the genai ask |
Important
Enable native tool calling for Gemini provider by updating model support, handler logic, and conversion functions, with corresponding tests.
supportsNativeTools: trueingeminiModelsingemini.ts.GeminiHandleringemini.tsto handle tool-related metadata and function calls, including tool ID to name mapping and function call configuration.convertAnthropicContentToGemini()ingemini-format.tsto handletool_useandtool_resultblocks, using a map for tool ID to name conversion.gemini-format.ts.gemini-format.spec.tsto cover tool use and result conversion, including error cases for missing tool names.This description was created by
for b608e70. You can customize this summary. It will automatically update as commits are pushed.