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

@@ -151,6 +151,14 @@ function addModelSelectOption(params: {
params.seen.add(key);
}
function isAnthropicLegacyModel(entry: { provider: string; id: string }): boolean {
return (
entry.provider === "anthropic" &&
typeof entry.id === "string" &&
entry.id.toLowerCase().startsWith("claude-3")
);
}
async function promptManualModel(params: {
prompter: WizardPrompter;
allowBlank: boolean;
@@ -251,6 +259,9 @@ export async function promptDefaultModel(
if (hasPreferredProvider && preferredProvider) {
models = models.filter((entry) => entry.provider === preferredProvider);
if (preferredProvider === "anthropic") {
models = models.filter((entry) => !isAnthropicLegacyModel(entry));
}
}
const agentDir = params.agentDir;