picoclaw/pkg/providers
徐闻涵0668001344 5b41f18c3d fix(gemini): set both camelCase and snake_case thought_signature in tool call request body
The Gemini HTTP API provider only set thoughtSignature (camelCase) when
building tool call request bodies. Gemini 2.5 models accept camelCase,
but Gemini 3.5 Flash Agentic reasoning requires thought_signature
(snake_case) — matching the format it returns in API responses. When
only the camelCase variant was sent, Gemini 3.5 Flash rejected the
request with a 400 Bad Request for missing thought_signature.

The fix sets both ThoughtSignature and ThoughtSignatureSnake in the
geminiPart struct, matching the pattern already used in
antigravity_provider.go. This ensures compatibility with both Gemini
2.x (camelCase) and Gemini 3.x Agentic (snake_case) models.

Closes #3111
2026-06-16 20:51:59 +08:00
..
anthropic fix(anthropic): support anthropic-sdk-go v1.46.0 2026-05-31 11:54:35 +02:00
anthropic_messages Deduplicate further functions 2026-04-23 05:50:37 +00:00
azure Fix linting 2026-05-30 14:11:39 +00:00
bedrock Merge pull request #2982 from loafoe/fix/bedrock-opus48-temperature 2026-06-01 13:02:18 +02:00
cli Feat(channels): unify animated tool feedback across chat channels and Pico (#2622) 2026-04-23 10:35:50 +08:00
common feat(tool): tool schema semplification 2026-04-27 21:10:30 +02:00
httpapi fix(gemini): set both camelCase and snake_case thought_signature in tool call request body 2026-06-16 20:51:59 +08:00
messageutil fix(messageutil): remove dead code 2026-04-24 22:16:18 +08:00
oauth fix: preserve streamed Codex tool calls 2026-06-04 19:27:29 +02:00
openai_compat refactor(openai_compat): replace log.Printf with structured logger 2026-06-14 23:41:48 +08:00
openai_responses_common Deduplicate ParseDataAudioURL function 2026-04-23 05:50:37 +00:00
protocoltypes feat(session): add per-message created_at timestamps 2026-05-22 13:15:56 +08:00
cli_facade.go refactor(providers): reorganize provider packages and facades 2026-04-17 12:42:03 +08:00
cli_factory_test.go refactor(providers): reorganize provider packages and facades 2026-04-17 12:42:03 +08:00
cooldown.go style: fix gofmt formatting in cooldown files 2026-02-13 12:26:44 -03:00
cooldown_test.go refactor(modernize): apply safe modernize fixes 2026-02-27 16:35:07 +08:00
error_classifier.go fix(providers): add Zhipu API error code 1210 to format error patterns 2026-06-02 17:26:14 +08:00
error_classifier_test.go fix(network): classify timeout errors as FailoverTimeout 2026-04-16 22:00:13 +08:00
facade_compat_test.go fix(providers,tools): address linter issues after reorg 2026-04-17 14:16:18 +08:00
factory.go refactor Config to add Version and migratable 2026-03-12 13:52:55 +08:00
factory_provider.go Add azure entra id support for azure openai provider 2026-05-30 13:40:29 +00:00
factory_provider_azidentity_test.go Add azure entra id support for azure openai provider 2026-05-30 13:40:29 +00:00
factory_provider_test.go fix(config): use canonical Anthropic default model ID 2026-06-07 15:43:26 +08:00
factory_test.go refactor: seperate security.yml for store keys 2026-03-22 01:55:00 +08:00
fallback.go fix(agent): honor explicit thinking off (#2898) 2026-05-21 11:07:39 +08:00
fallback_multikey_test.go feat(model): llm rate limiting (#2198) 2026-04-02 19:26:26 +08:00
fallback_test.go refactor(tests): extract common logic for fallback error handling into a helper function 2026-04-16 22:45:31 +08:00
httpapi_facade.go refactor(providers): reorganize provider packages and facades 2026-04-17 12:42:03 +08:00
legacy_provider.go refactor Config to add Version and migratable 2026-03-12 13:52:55 +08:00
model_ref.go refactor(models): unify provider metadata around backend catalog (#2896) 2026-05-20 11:50:34 +08:00
model_ref_test.go feat(provider): add gpt4free openai-compatible provider (#2909) 2026-05-21 16:08:46 +08:00
oauth_facade.go refactor(providers): reorganize provider packages and facades 2026-04-17 12:42:03 +08:00
provider_catalog.go refactor(models): unify provider metadata around backend catalog (#2896) 2026-05-20 11:50:34 +08:00
provider_metadata.go Merge pull request #2915 from SiYue-ZO/feat/mimo-common-models 2026-06-05 20:52:29 +02:00
ratelimiter.go feat(model): llm rate limiting (#2198) 2026-04-02 19:26:26 +08:00
ratelimiter_test.go feat(model): llm rate limiting (#2198) 2026-04-02 19:26:26 +08:00
tool_schema_transform.go feat: support streaming (#2892) 2026-05-19 16:38:47 +08:00
tool_schema_transform_test.go fix test 2026-04-27 21:18:19 +02:00
toolcall_utils_test.go Feat(channels): unify animated tool feedback across chat channels and Pico (#2622) 2026-04-23 10:35:50 +08:00
types.go feat: support streaming (#2892) 2026-05-19 16:38:47 +08:00