openclaw/src/providers
Florian Hines 33e7394861
fix(providers): make all models available in kilocode provider (#32352)
* kilocode: dynamic model discovery, kilo/auto default, cooldown exemption

- Replace 9-model hardcoded catalog with dynamic discovery from
  GET /api/gateway/models (Venice-like pattern with static fallback)
- Default model changed from anthropic/claude-opus-4.6 to kilo/auto
  (smart routing model)
- Add createKilocodeWrapper for X-KILOCODE-FEATURE header injection
  and reasoning.effort handling (skip for kilo/auto)
- Add kilocode to cooldown-exempt providers (proxy like OpenRouter)
- Keep sync buildKilocodeProvider for onboarding, add async
  buildKilocodeProviderWithDiscovery for implicit provider resolution
- Per-token gateway pricing converted to per-1M-token for cost fields

* kilocode: skip reasoning injection for x-ai models, harden discovery loop

* fix(kilocode): keep valid discovered duplicates (openclaw#32352, thanks @pandemicsyn)

* refactor(proxy): normalize reasoning payload guards (openclaw#32352, thanks @pandemicsyn)

* chore(changelog): note kilocode hardening (openclaw#32352, thanks @pandemicsyn and @vincentkoc)

* chore(changelog): fix kilocode note format (openclaw#32352, thanks @pandemicsyn and @vincentkoc)

* test(kilocode): support auto-model override cases (openclaw#32352, thanks @pandemicsyn)

* Update CHANGELOG.md

---------

Co-authored-by: Vincent Koc <vincentkoc@ieee.org>
2026-03-07 08:14:06 -08:00
..
github-copilot-auth.ts style: align formatting with oxfmt 0.33 2026-02-18 01:34:35 +00:00
github-copilot-models.test.ts Add Claude Sonnet 4.6 and 4.5 to GitHub Copilot model catalog (openclaw#20270) thanks @Clawborn 2026-02-19 21:54:52 -06:00
github-copilot-models.ts Add Claude Sonnet 4.6 and 4.5 to GitHub Copilot model catalog (openclaw#20270) thanks @Clawborn 2026-02-19 21:54:52 -06:00
github-copilot-token.test.ts test(core): use lightweight clears in update, child adapter, and copilot token setup 2026-02-22 08:01:16 +00:00
github-copilot-token.ts perf(test): eliminate resetModules via injectable seams 2026-02-13 16:20:37 +00:00
google-shared.ensures-function-call-comes-after-user-turn.test.ts refactor: dedupe agent and browser cli helpers 2026-03-03 00:15:00 +00:00
google-shared.preserves-parameters-type-is-missing.test.ts refactor: dedupe agent and browser cli helpers 2026-03-03 00:15:00 +00:00
google-shared.test-helpers.ts refactor: dedupe agent and browser cli helpers 2026-03-03 00:15:00 +00:00
kilocode-shared.ts fix(providers): make all models available in kilocode provider (#32352) 2026-03-07 08:14:06 -08:00
qwen-portal-oauth.test.ts refactor(agents): dedupe plugin hooks and test helpers 2026-02-22 07:44:57 +00:00
qwen-portal-oauth.ts fix(oauth): harden refresh token refresh-response validation 2026-02-21 13:44:14 +01:00