mirror of
https://github.com/openclaw/openclaw.git
synced 2026-05-20 09:17:51 +00:00
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 |
||
|---|---|---|
| .. | ||
| api.ts | ||
| deepseek.live.test.ts | ||
| index.test.ts | ||
| index.ts | ||
| models.ts | ||
| onboard.ts | ||
| openclaw.plugin.json | ||
| package.json | ||
| provider-catalog.ts | ||
| provider-discovery.ts | ||
| provider-policy-api.test.ts | ||
| provider-policy-api.ts | ||
| stream.ts | ||
| tsconfig.json | ||