Treat empty model overrides as fallback

This commit is contained in:
Alishahryar1 2026-04-24 13:58:25 -07:00
parent 862eb43046
commit d2db1bd689
5 changed files with 31 additions and 15 deletions

View file

@ -119,7 +119,7 @@ class Settings(BaseSettings):
# ==================== Model ====================
# All Claude model requests are mapped to this single model (fallback)
# Format: provider_type/model/name
model: str = "nvidia_nim/stepfun-ai/step-3.5-flash"
model: str = "nvidia_nim/z-ai/glm4.7"
# Per-model overrides (optional, falls back to MODEL)
# Each can use a different provider
@ -217,6 +217,9 @@ class Settings(BaseSettings):
"allowed_telegram_user_id",
"discord_bot_token",
"allowed_discord_channels",
"model_opus",
"model_sonnet",
"model_haiku",
mode="before",
)
@classmethod