docs(models): delegate Kimi example default (#3457)
Remove the release-specific model from the Kimi launcher example so an unoverridden session uses the default already configured in the Kimi CLI. Document the ownership boundary, assert that the spawn environment omits HARNESS_KIMI_MODEL when no model is declared, and ratchet the retired lint allowance. Tests: 12 Kimi spawn-environment tests; structural example load; staged pre-commit including YAML and hardcoded-model checks. Part of #3426 Signed-off-by: Pat Sukprasert <pat.sukprasert@databricks.com>
This commit is contained in:
@@ -17,7 +17,6 @@
|
||||
.github/workflows/polly-review.yml databricks-gpt-5-5 1
|
||||
.github/workflows/security-triage.yml databricks-claude-sonnet-4-6 1
|
||||
.github/workflows/vscode-release-pr.yml databricks-claude-sonnet-4-6 1
|
||||
examples/kimi_hello.yaml kimi-k2-turbo 1
|
||||
omnigent/cli_config.py claude-opus-4-5-20251101-v1:0 1
|
||||
omnigent/cursor_native.py claude-opus-4-5 1
|
||||
omnigent/cursor_native.py claude-opus-4-6 1
|
||||
|
||||
@@ -171,3 +171,9 @@ prefilling a source-controlled model pin.
|
||||
The same policy supplies the final runtime fallback for key, gateway, and local
|
||||
providers. Explicit agent and provider defaults still win; without either,
|
||||
runtime discovery fails with configuration guidance when no catalog is available.
|
||||
|
||||
## Kimi Example Default
|
||||
|
||||
The Kimi launcher example declares only the harness. With no explicit
|
||||
`--model` or session override, Omnigent omits `HARNESS_KIMI_MODEL` and lets the
|
||||
Kimi CLI use the default from its own provider configuration.
|
||||
|
||||
@@ -11,9 +11,8 @@ description: >-
|
||||
# under ``examples/polly/`` / ``examples/debby/``.
|
||||
executor:
|
||||
harness: kimi
|
||||
# Override per-invocation via ``-m kimi-k2-turbo`` or ``/model`` in the REPL.
|
||||
# With no model pinned, Kimi picks the default model set in its config.
|
||||
model: kimi-k2-turbo
|
||||
# Override per-invocation via ``-m <model-id>`` or ``/model`` in the REPL.
|
||||
# Otherwise Kimi uses the default model from its own config.
|
||||
|
||||
prompt: |
|
||||
You are Kimi Code, running headlessly inside Omnigent. Help the user with
|
||||
@@ -42,7 +41,7 @@ prompt: |
|
||||
# Try it:
|
||||
# omnigent run examples/kimi_hello.yaml
|
||||
# omnigent run examples/kimi_hello.yaml -p "summarise the README"
|
||||
# omnigent run examples/kimi_hello.yaml -m kimi-k2-turbo
|
||||
# omnigent run examples/kimi_hello.yaml -m <model-id>
|
||||
#
|
||||
# Or as a shortcut for any kimi-harness run:
|
||||
# omnigent kimi -p "list the files in the current directory"
|
||||
|
||||
@@ -1273,6 +1273,7 @@ def test_kimi_no_provider_emits_no_gateway_vars(config_home: Path) -> None:
|
||||
|
||||
env = _build_kimi_spawn_env(spec, cwd=None)
|
||||
|
||||
assert "HARNESS_KIMI_MODEL" not in env
|
||||
assert "HARNESS_KIMI_GATEWAY_BASE_URL" not in env
|
||||
assert "HARNESS_KIMI_GATEWAY_API_KEY" not in env
|
||||
assert "HARNESS_KIMI_GATEWAY_PROVIDER" not in env
|
||||
|
||||
Reference in New Issue
Block a user