mirror of
https://github.com/MoonshotAI/kimi-code.git
synced 2026-07-10 01:39:25 +00:00
* feat(env): migrate kimi-cli model request params and auto-update toggle Migrate still-relevant environment variables from kimi-cli: - KIMI_MODEL_TEMPERATURE / KIMI_MODEL_TOP_P: sampling params applied globally to any kimi provider (not tied to KIMI_MODEL_NAME). - KIMI_MODEL_THINKING_KEEP: Moonshot preserved-thinking passthrough (thinking.keep), injected only while Thinking is on. - KIMI_CODE_NO_AUTO_UPDATE (legacy alias KIMI_CLI_NO_AUTO_UPDATE): fully disables the update preflight. Wires env -> provider in Agent.get llm() via applyKimiEnvGenerationParams, reusing kosong's existing GenerationKwargs / thinking.keep support. KIMI_MODEL_MAX_TOKENS is intentionally untouched: it already flows through the completion-budget path. * fix(env): apply Kimi sampling params to compaction requests too Sink KIMI_MODEL_TEMPERATURE / KIMI_MODEL_TOP_P into ConfigState.provider so every request built from config.provider — main loop and full-history compaction alike — carries them, matching kimi-cli where these live on the shared create_llm provider. thinking.keep stays in Agent.llm because it depends on the runtime thinking state (compaction runs thinking-off and correctly skips it). Splits applyKimiEnvGenerationParams into applyKimiEnvSamplingParams (applied at provider construction) and applyKimiEnvThinkingKeep (applied in Agent.llm). Addresses PR review feedback about compaction requests bypassing the wrapped provider. |
||
|---|---|---|
| .. | ||
| kimi-code | ||
| vis | ||