Skip to content

Claude Code使用gemini模型报错 #2098

@teaim

Description

@teaim

Claude Code for VS Code最新版 v2.1.74
CLIProxyAPI最新版 v6.8.51

通过修改 AI 提供商配置的接入标准的Gemini接口或Gemini的OpenAI兼容接口
在Claude Code中使用gemini-3-flash-preview可以正常对话, 但是遇到工具调用就会报错

API Error: 400 [{
"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:Bash , position 15. Please refer to https://ai.google.dev/gemini-api/docs/thought-signatures for more details.",
"status": "INVALID_ARGUMENT"
}
}
]

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions