perf(copilot): switch default model from Opus to Sonnet

Opus at $15/$75 per M tokens is unsustainable for agentic sessions
(1M+ context after 30+ turns = $7+/turn). Sonnet at $3/$15 per M
is 5x cheaper with comparable quality for most tasks.

Override via CHAT_MODEL=anthropic/claude-opus-4.6 for premium tier.
This commit is contained in:
majdyz
2026-04-13 10:25:38 +00:00
parent ec2acfb9e3
commit dbaaa88e1b

View File

@@ -22,8 +22,10 @@ class ChatConfig(BaseSettings):
# OpenAI API Configuration
model: str = Field(
default="anthropic/claude-opus-4.6",
description="Default model for extended thinking mode",
default="anthropic/claude-sonnet-4",
description="Default model for extended thinking mode. "
"Changed from Opus ($15/$75 per M) to Sonnet ($3/$15 per M) — "
"5x cheaper. Override via CHAT_MODEL env var for Opus.",
)
fast_model: str = Field(
default="anthropic/claude-sonnet-4",