fix(config): accept 'model' key as alias for 'default' in model config (#3603)

Users intuitively write model: { model: my-model } instead of
model: { default: my-model } and it silently falls back to the
hardcoded default. Now both spellings work across all three config
consumers: runtime_provider, CLI, and gateway.

Co-authored-by: ygd58 <ygd58@users.noreply.github.com>
This commit is contained in:
Teknium
2026-03-28 14:55:27 -07:00
committed by GitHub
parent 9a364f2805
commit e4480ff426
5 changed files with 11 additions and 3 deletions

View File

@@ -7,6 +7,7 @@
# =============================================================================
model:
# Default model to use (can be overridden with --model flag)
# Both "default" and "model" work as the key name here.
default: "anthropic/claude-opus-4.6"
# Inference provider selection: