picoclaw/pkg/config
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
..
config.go feat(providers): add LongCat model provider support (#1317) 2026-03-12 02:34:42 +08:00
config_test.go fix(config): support Chinese comma separator in allow_from environment variables (#1301) 2026-03-12 02:33:33 +08:00
defaults.go feat(providers): add LongCat model provider support (#1317) 2026-03-12 02:34:42 +08:00
migration.go feat(providers): add LongCat model provider support (#1317) 2026-03-12 02:34:42 +08:00
migration_test.go feat(providers): add LongCat model provider support (#1317) 2026-03-12 02:34:42 +08:00
model_config_test.go refactor(modernize): apply safe modernize fixes 2026-02-27 16:35:07 +08:00
version.go feat:Modify the location where version is obtained, and insert version information into the context (#1300) 2026-03-10 17:42:05 +08:00
version_test.go feat:Modify the location where version is obtained, and insert version information into the context (#1300) 2026-03-10 17:42:05 +08:00