You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
|`KIMI_CODE_BACKGROUND_KEEP_ALIVE_ON_EXIT`| Override `[background].keep_alive_on_exit`, controlling whether still-running background tasks are kept when the session closes | True values: `1`, `true`, `yes`, `on`; false values: `0`, `false`, `no`, `off`; when unset, reads `config.toml`, then falls back to `true`|
76
76
|`KIMI_SHELL_PATH`| Override the absolute path to Git Bash (`bash.exe`) on Windows; only needed when auto-detection fails on Windows | None |
77
-
|`KIMI_MODEL_MAX_COMPLETION_TOKENS`|Desired budget for `max_completion_tokens` in a single-step LLM request (the actual value is further clamped by the context window and input size); set to `0` or a negative value to disable clamping entirely. **Currently effective only for providers of type `kimi`**; for Anthropic and other providers, use `[models.<alias>].max_output_size` instead (see [Config files](./config-files.md#models)) |Defaults to 32000, influenced by `loop_control.reserved_context_size`|
77
+
|`KIMI_MODEL_MAX_COMPLETION_TOKENS`|Explicit hard cap for `max_completion_tokens` in a single-step LLM request. When unset, Kimi Code uses the safe remaining context window for models with a known context size. Set to `0` or a negative value to disable clamping entirely. **Currently effective only for providers of type `kimi`**; for Anthropic and other providers, use `[models.<alias>].max_output_size` instead (see [Config files](./config-files.md#models)) |Unset: computed from remaining context; unknown context falls back to `loop_control.reserved_context_size`, then 32000|
78
78
79
79
For example, to disable telemetry on a shared host:
0 commit comments