picoclaw/pkg/providers
Edouard CLAUDE be5aaa3417 feat: add native Mistral AI provider support
Add Mistral as a first-class provider alongside the 17 existing ones.
Mistral uses the OpenAI-compatible API at https://api.mistral.ai/v1
with provider-specific model prefix stripping (mistral/model → model).

Changes:
- Add Mistral to ProvidersConfig, IsEmpty(), HasProvidersConfig()
- Add mistral entry in default model_list (defaults.go)
- Add mistral protocol in factory_provider.go and getDefaultAPIBase()
- Add mistral prefix stripping in openai_compat normalizeModel()
- Add mistral case in legacy factory.go resolveProviderSelection()
- Add mistral migration entry in ConvertProvidersToModelList()
- Add mistral to supported providers in migrate/config.go
- Add mistral section in config.example.json
- Update AllProviders test (17 → 18 providers)

Tested end-to-end with mistral-small-latest model.
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 feat(fmt): Fix formatting 2026-02-20 20:03:11 +02: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