fix(Gemini): update ToolCallRequest and OpenAICompatProvider to handle thought signatures in extra_content

This commit is contained in:
Yohei Nishikubo authored and Xubin Ren committed 2026-03-25 10:00:29 +08:00
1 parent 7b720ce9f7
commit af84b1b8c0
4 files changed
+25 -4

No files matched your search

+1 -1
View File
@@ -14,6 +14,6 @@ def test_tool_call_request_serializes_provider_fields() -> None:
message = tool_call.to_openai_tool_call()
assert message["provider_specific_fields"] == {"thought_signature": "signed-token"}
assert message["extra_content"] == {"google": {"thought_signature": "signed-token"}}
assert message["function"]["provider_specific_fields"] == {"inner": "value"}
assert message["function"]["arguments"] == '{"path": "todo.md"}'