-
Notifications
You must be signed in to change notification settings - Fork 1.2k
Open
Labels
bug?Bug或Bug修复相关 / maybe a bugBug或Bug修复相关 / maybe a bugm: Tools工具(ToolUse、内容函数)相关 / Function Calling or tools management工具(ToolUse、内容函数)相关 / Function Calling or tools managementpd: Need testingpending: 待测试的PR / PR waiting to be testedpending: 待测试的PR / PR waiting to be tested
Description
Runtime environment
v4.6.5, Ubuntu 22, Native
Exception
如题,gemini-3-flash-preview 调用工具需要指定思路签名
see https://ai.google.dev/gemini-api/docs/thought-signatures?hl=zh-cn
[01-01 05:58:58.740] process.py (39) - [INFO] : Processing request from person_1847732214 (227): 你好 搜索一下今天的日期
[01-01 05:58:59.646] chat.py (130) - [INFO] : Conversation(227) Response: Call tool: function-...
[01-01 05:59:00.642] chat.py (130) - [INFO] : Conversation(227) Response: tool: "## Result 1: ...
[01-01 05:59:00.849] chat.py (143) - [ERROR] : Conversation(227) Request Failed: RequesterError 模型请求失败: 请求参数错误: Error code: 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:tavily_search` , position 6. Please refer to https://ai.google.dev/gemini-api/docs/thought-signatures for more details.', 'status': 'INVALID_ARGUMENT'}}]
[01-01 05:59:01.146] pipelinemgr.py (153) - [ERROR] : 模型请求失败: 请求参数错误: Error code: 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:tavily_search` , position 6. Please refer to https://ai.google.dev/gemini-api/docs/thought-signatures for more details.', 'status': 'INVALID_ARGUMENT'}}]Reproduction steps
No response
Enabled plugins
No response
Metadata
Metadata
Assignees
Labels
bug?Bug或Bug修复相关 / maybe a bugBug或Bug修复相关 / maybe a bugm: Tools工具(ToolUse、内容函数)相关 / Function Calling or tools management工具(ToolUse、内容函数)相关 / Function Calling or tools managementpd: Need testingpending: 待测试的PR / PR waiting to be testedpending: 待测试的PR / PR waiting to be tested