picoclaw/pkg/providers
winterfx d224397f40 fix: preserve reasoning_content for OpenAI-compatible reasoning models
Models like Moonshot kimi-k2.5 and DeepSeek-R1 return a
reasoning_content field in assistant messages. When thinking is enabled,
the API requires this field to be echoed back in subsequent requests.
PicoClaw was silently dropping it, causing 400 errors on tool-call
round-trips.

- Add ReasoningContent to Message and LLMResponse types
- Parse reasoning_content in openai_compat parseResponse()
- Carry reasoning_content through assistant tool-call messages
- Add unit test for reasoning_content parsing

Fixes #588
2026-02-21 23:29:40 +08:00
..
anthropic feat(fmt): Fix formatting 2026-02-20 20:03:11 +02:00
openai_compat fix: preserve reasoning_content for OpenAI-compatible reasoning models 2026-02-21 23:29:40 +08:00
protocoltypes fix: preserve reasoning_content for OpenAI-compatible reasoning models 2026-02-21 23:29:40 +08: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 refactor(providers): restructure provider creation with protocol-based configuration 2026-02-20 00:12:01 +08:00
factory_provider.go chore: update Claude model references to claude-sonnet-4.6 2026-02-20 12:15:04 +08: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