fix(gemini): fix Gemini tool calling and thought-signature round-trip (#1389)

- send tool declarations, system prompt, and sampling/thinking settings in the camelCase shape the Google SDK forwards so tool calls reach the model
- thread tool-call extras (thought signatures) through the loop tool-call event into context so Gemini 3 can resume a tool turn
- update and add tests for the corrected request shape and signature round-trip
This commit is contained in:
Haozhe 2026-07-05 14:00:09 +08:00 committed by GitHub
parent be7c9916b0
commit ebdffc7df7
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
8 changed files with 201 additions and 113 deletions

View file

@ -0,0 +1,5 @@
---
"@moonshot-ai/kimi-code": patch
---
Fix tool calling with Google Gemini models, including Gemini 3 thinking-signature round-trips across turns.