openclaw/extensions/deepseek
Alex Knight 8f2dd02d2d
fix(deepseek): add provider-policy-api to hydrate contextWindow and cost from catalog (#74326)
DeepSeek models had no provider-policy-api.ts, so materializeRuntimeConfig
filled contextWindow with DEFAULT_CONTEXT_TOKENS (200k) and cost with zeros
for all DeepSeek models. This caused premature session compaction at ~125k
instead of using the full 1M window, and zero-cost display for v4 models.

Add a normalizeConfig surface that hydrates missing contextWindow, maxTokens,
and cost from the bundled DeepSeek model catalog for matching model ids.
Explicit user overrides are preserved.

Fixes #74245
2026-04-29 22:38:11 +10:00
..
api.ts feat(deepseek): support v4 models 2026-04-24 16:09:36 +01:00
deepseek.live.test.ts fix(deepseek): backfill v4 assistant reasoning replay 2026-04-28 10:07:39 +01:00
index.test.ts fix(deepseek): backfill v4 assistant reasoning replay 2026-04-28 10:07:39 +01:00
index.ts test(deepseek): add live v4 model coverage 2026-04-24 16:30:35 +01:00
models.ts refactor: build deepseek catalog from manifest 2026-04-28 05:30:04 +01:00
onboard.ts feat(deepseek): support v4 models 2026-04-24 16:09:36 +01:00
openclaw.plugin.json perf: mark provider plugins startup lazy 2026-04-28 04:33:47 +01:00
package.json chore: bump version to 2026.4.25 2026-04-25 10:31:52 +01:00
provider-catalog.ts
provider-discovery.ts
provider-policy-api.test.ts fix(deepseek): add provider-policy-api to hydrate contextWindow and cost from catalog (#74326) 2026-04-29 22:38:11 +10:00
provider-policy-api.ts fix(deepseek): add provider-policy-api to hydrate contextWindow and cost from catalog (#74326) 2026-04-29 22:38:11 +10:00
stream.ts fix(opencode-go): route DeepSeek V4 through OpenAI transport 2026-04-25 18:58:08 +01:00
tsconfig.json