picoclaw/pkg/providers
LeaderOnePro 9222351871
feat(providers): add LongCat model provider support (#1317)
* feat(providers): add LongCat model provider support

Add LongCat as an OpenAI-compatible provider with base URL
https://api.longcat.chat/openai and default model LongCat-Flash-Thinking.
Includes provider config, migration, factory routing, example config,
tests, and README entries for all 6 locales.

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>

* fix(providers): address LongCat review feedback

- Add dedicated factory routing test for LongCat provider
- Add longcat to DefaultAPIBase test coverage
- Set default api_base in example config providers section

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>

* test(providers): add ResolveProviderSelection tests for LongCat

Add two test cases to TestResolveProviderSelection:
- Explicit provider selection with api_base default and proxy wiring
- Fallback inference from model name with api_base default

---------

Co-authored-by: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
2026-03-12 02:34:42 +08:00
..
anthropic feat(auth): add Anthropic OAuth setup-token login (#926) 2026-03-06 19:58:23 +08:00
openai_compat fix(openai_compat): only send prompt_cache_key to OpenAI endpoints (#1353) 2026-03-12 01:21:54 +08:00
protocoltypes feat(providers): add Media field to Message struct for vision support 2026-03-03 16:27:29 +08:00
antigravity_provider.go fix: handle ignored io.ReadAll errors across codebase 2026-03-05 20:56:38 +09: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 remove wrapper methods 2026-03-01 18:24:11 +11:00
claude_cli_provider_integration_test.go feat(fmt): Run formatters 2026-02-18 21:48:23 +02:00
claude_cli_provider_test.go remove wrapper methods 2026-03-01 18:24:11 +11: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 enable dogsled 2026-02-25 21:14:19 +11:00
codex_cli_provider.go remove wrapper methods 2026-03-01 18:24:11 +11: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 refactor(modernize): apply safe modernize fixes 2026-02-27 16:35:07 +08: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 refactor(modernize): apply safe modernize fixes 2026-02-27 16:35:07 +08:00
error_classifier.go fix(pkg):do regex precompile insteadd on the fly (#911) 2026-03-01 23:06:31 +11:00
error_classifier_test.go fix(pkg):do regex precompile insteadd on the fly (#911) 2026-03-01 23:06:31 +11:00
factory.go feat(providers): add LongCat model provider support (#1317) 2026-03-12 02:34:42 +08:00
factory_provider.go feat(providers): add LongCat model provider support (#1317) 2026-03-12 02:34:42 +08:00
factory_provider_test.go feat(providers): add LongCat model provider support (#1317) 2026-03-12 02:34:42 +08:00
factory_test.go feat(providers): add LongCat model provider support (#1317) 2026-03-12 02:34:42 +08:00
fallback.go fix(providers): support lookup-based fallback candidate resolution 2026-02-26 23:50:33 +08:00
fallback_test.go fix(providers): support lookup-based fallback candidate resolution 2026-02-26 23:50:33 +08:00
github_copilot_provider.go fix: improve error handling in GitHub Copilot provider (#919) 2026-03-01 22:58:41 +11:00
http_provider.go fix(providers): support per-model request_timeout in model_list (#733) 2026-02-26 19:08:19 +11:00
legacy_provider.go fix:Openrouter in providers and modellist 2026-02-25 14:44:49 +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 enable dupl check 2026-03-01 18:17:32 +11:00
types.go feat: add extended thinking support for Anthropic models (#1076) 2026-03-05 09:51:18 +08:00