-
Notifications
You must be signed in to change notification settings - Fork 1.6k
Open
Description
Plugin Type
VSCode Extension
App Version
4.140.1 (7fe600c)
Description
Error occured when using Model Gemini 3 Pro Preview with about 130k tokens Context, Code mode and Defalut Tool call Protocol, and the Error message is:
Google AI Studio error: Gemini models require OpenRouter reasoning details to be preserved in each request. Please refer to our docs: https://openrouter.ai/docs/guides/best-practices/reasoning-tokens#preserving-reasoning-blocks. Upstream error: {
"error": {
"code": 400,
"message": "Function call is missing a thought_signature in functionCall parts. This is required for tools to work correctly, and missing thought_signature may lead to degraded model performance. Additional data, function call `default_api:read_file` , position 160. Please refer to https://ai.google.dev/gemini-api/docs/thought-signatures for more details.",
"status": "INVALID_ARGUMENT"
}
}
I have met this Error many times When using Google models, also, similiar errors sometimes occurs in other models.
Reproduction steps
- I opened Kilo Code in a normal Folder
- I used Kilo Code for about 20 minutes
- I asked the agent to change a
config.jsonfile - error occured when the agent tried to use (probably) the Read File Tool
Provider
Kilo GateWay
Model
google/gemini-3-pro-preview
System Information
IDE Info:
Visual Studio Code
版本: 1.107.1 (user setup)
提交: 994fd12f8d3a5aa16f17d42c041e5809167e845a
日期: 2025-12-17T14:15:14.850Z
Electron: 39.2.3
ElectronBuildId: 12895514
Chromium: 142.0.7444.175
Node.js: 22.21.1
V8: 14.2.231.21-electron.0
OS: Windows_NT x64 10.0.26220
CPU: Intel(R) Core(TM) Ultra 9 185H
RAM: 32GB
Metadata
Metadata
Assignees
Labels
No labels
Type
Projects
Status
Intake