feat: switch anthropic onboarding defaults to sonnet

This commit is contained in:
Peter Steinberger
2026-02-18 04:37:50 +01:00
parent e8816c554f
commit f25bbbc37e
3 changed files with 22 additions and 2 deletions

View File

@@ -29,8 +29,8 @@ function sanitizeTokenValue(value: string | undefined): string | undefined {
}
const ANTHROPIC_OAUTH_MODEL_KEYS = [
"anthropic/claude-opus-4-6",
"anthropic/claude-sonnet-4-6",
"anthropic/claude-opus-4-6",
"anthropic/claude-opus-4-5",
"anthropic/claude-sonnet-4-5",
"anthropic/claude-haiku-4-5",
@@ -121,7 +121,7 @@ export async function promptAuthConfig(
config: next,
prompter,
allowedKeys: anthropicOAuth ? ANTHROPIC_OAUTH_MODEL_KEYS : undefined,
initialSelections: anthropicOAuth ? ["anthropic/claude-opus-4-6"] : undefined,
initialSelections: anthropicOAuth ? ["anthropic/claude-sonnet-4-6"] : undefined,
message: anthropicOAuth ? "Anthropic OAuth models" : undefined,
});
if (allowlistSelection.models) {