picoclaw/pkg/providers
Edouard CLAUDE 34a8ce5af0 fix: remove extra fields from ToolCall JSON serialization
Mistral's API strictly validates tool_calls in assistant messages and
rejects non-standard fields. The ToolCall struct had Name and Arguments
as top-level JSON fields, duplicating data already in Function.Name
and Function.Arguments. OpenAI silently ignored these extras but
Mistral returns 422.

Change json tags to "-" so these internal fields are no longer
serialized to API payloads while remaining available in Go code.
2026-02-22 11:40:21 +04:00
..
anthropic feat(fmt): Fix formatting 2026-02-20 20:03:11 +02:00
openai_compat feat: add native Mistral AI provider support 2026-02-22 11:40:21 +04:00
protocoltypes fix: remove extra fields from ToolCall JSON serialization 2026-02-22 11:40:21 +04:00
antigravity_provider.go feat(fmt): Fix formatting 2026-02-20 20:03:11 +02:00
antigravity_provider_test.go fix(antigravity): normalize tool calls to avoid empty function names 2026-02-17 20:05:35 +05:30
claude_cli_provider.go feat(fmt): Run formatters 2026-02-18 21:48:23 +02:00
claude_cli_provider_integration_test.go feat(fmt): Run formatters 2026-02-18 21:48:23 +02:00
claude_cli_provider_test.go Merge branch 'main' into fix-formatting 2026-02-20 20:02:53 +02:00
claude_provider.go feat(fmt): Run formatters 2026-02-18 21:48:23 +02:00
claude_provider_test.go feat(fmt): Fix formatting 2026-02-20 20:03:11 +02:00
codex_cli_credentials.go feat(linter): Fix govet linter 2026-02-20 22:35:16 +02:00
codex_cli_credentials_test.go feat(fmt): Run formatters 2026-02-18 21:48:23 +02:00
codex_cli_provider.go feat(fmt): Run formatters 2026-02-18 21:48:23 +02:00
codex_cli_provider_integration_test.go feat(fmt): Run formatters 2026-02-18 21:48:23 +02:00
codex_cli_provider_test.go feat(fmt): Run formatters 2026-02-18 21:48:23 +02:00
codex_provider.go feat(fmt): Run formatters 2026-02-18 21:48:23 +02:00
codex_provider_test.go feat(fmt): Run formatters 2026-02-18 21:48:23 +02:00
cooldown.go style: fix gofmt formatting in cooldown files 2026-02-13 12:26:44 -03:00
cooldown_test.go style: fix gofmt formatting in cooldown files 2026-02-13 12:26:44 -03:00
error_classifier.go feat: add model fallback chain with error classification 2026-02-13 12:12:12 -03:00
error_classifier_test.go feat: add model fallback chain with error classification 2026-02-13 12:12:12 -03:00
factory.go feat: add native Mistral AI provider support 2026-02-22 11:40:21 +04:00
factory_provider.go feat: add native Mistral AI provider support 2026-02-22 11:40:21 +04:00
factory_provider_test.go chore: update Claude model references to claude-sonnet-4.6 2026-02-20 12:15:04 +08:00
factory_test.go chore: update Claude model references to claude-sonnet-4.6 2026-02-20 12:15:04 +08:00
fallback.go feat(fmt): Run formatters 2026-02-18 21:48:23 +02:00
fallback_test.go feat(fmt): Run formatters 2026-02-18 21:48:23 +02:00
github_copilot_provider.go feat(fmt): Run formatters 2026-02-18 21:48:23 +02:00
http_provider.go feat(fmt): Fix formatting 2026-02-20 20:03:11 +02:00
legacy_provider.go refactor: simplify legacy_provider.go from 349 to 49 lines 2026-02-19 01:30:19 +08:00
model_ref.go feat: add model fallback chain with error classification 2026-02-13 12:12:12 -03:00
model_ref_test.go feat: add model fallback chain with error classification 2026-02-13 12:12:12 -03:00
tool_call_extract.go feat(fmt): Run formatters 2026-02-18 21:48:23 +02:00
toolcall_utils.go feat(fmt): Fix formatting 2026-02-20 20:03:11 +02:00
types.go feat(fmt): Fix formatting 2026-02-20 20:03:11 +02:00