diff --git a/electron/ConfigHelper.ts b/electron/ConfigHelper.ts index db8d3d2..3c97b0d 100644 --- a/electron/ConfigHelper.ts +++ b/electron/ConfigHelper.ts @@ -77,10 +77,10 @@ export class ConfigHelper extends EventEmitter { return model; } else if (provider === "anthropic") { // Only allow Claude models - const allowedModels = ['claude-3-7-sonnet-latest', 'claude-3-5-sonnet-20241022', 'claude-3-haiku-20240307']; + const allowedModels = ['claude-3-7-sonnet-20250219', 'claude-3-5-sonnet-20241022', 'claude-3-haiku-20240307']; if (!allowedModels.includes(model)) { - console.warn(`Invalid Anthropic model specified: ${model}. Using default model: claude-3-7-sonnet-latest`); - return 'claude-3-7-sonnet-latest'; + console.warn(`Invalid Anthropic model specified: ${model}. Using default model: claude-3-7-sonnet-20250219`); + return 'claude-3-7-sonnet-20250219'; } return model; } @@ -175,9 +175,9 @@ export class ConfigHelper extends EventEmitter { updates.solutionModel = "gpt-4o"; updates.debuggingModel = "gpt-4o"; } else if (updates.apiProvider === "anthropic") { - updates.extractionModel = "claude-3-7-sonnet-latest"; - updates.solutionModel = "claude-3-7-sonnet-latest"; - updates.debuggingModel = "claude-3-7-sonnet-latest"; + updates.extractionModel = "claude-3-7-sonnet-20250219"; + updates.solutionModel = "claude-3-7-sonnet-20250219"; + updates.debuggingModel = "claude-3-7-sonnet-20250219"; } else { updates.extractionModel = "gemini-2.0-flash"; updates.solutionModel = "gemini-2.0-flash"; @@ -397,4 +397,4 @@ export class ConfigHelper extends EventEmitter { } // Export a singleton instance -export const configHelper = new ConfigHelper(); \ No newline at end of file +export const configHelper = new ConfigHelper(); diff --git a/electron/ProcessingHelper.ts b/electron/ProcessingHelper.ts index c2c6d37..0dcd26f 100644 --- a/electron/ProcessingHelper.ts +++ b/electron/ProcessingHelper.ts @@ -604,7 +604,7 @@ export class ProcessingHelper { ]; const response = await this.anthropicClient.messages.create({ - model: config.extractionModel || "claude-3-7-sonnet-latest", + model: config.extractionModel || "claude-3-7-sonnet-20250219", max_tokens: 4000, messages: messages, temperature: 0.2 @@ -858,7 +858,7 @@ Your solution should be efficient, well-commented, and handle edge cases. // Send to Anthropic API const response = await this.anthropicClient.messages.create({ - model: config.solutionModel || "claude-3-7-sonnet-latest", + model: config.solutionModel || "claude-3-7-sonnet-20250219", max_tokens: 4000, messages: messages, temperature: 0.2 @@ -1216,7 +1216,7 @@ If you include code examples, use proper markdown code blocks with language spec } const response = await this.anthropicClient.messages.create({ - model: config.debuggingModel || "claude-3-7-sonnet-latest", + model: config.debuggingModel || "claude-3-7-sonnet-20250219", max_tokens: 4000, messages: messages, temperature: 0.2 @@ -1314,4 +1314,4 @@ If you include code examples, use proper markdown code blocks with language spec mainWindow.webContents.send(this.deps.PROCESSING_EVENTS.NO_SCREENSHOTS) } } -} \ No newline at end of file +} diff --git a/src/components/Settings/SettingsDialog.tsx b/src/components/Settings/SettingsDialog.tsx index a495485..4c33fb9 100644 --- a/src/components/Settings/SettingsDialog.tsx +++ b/src/components/Settings/SettingsDialog.tsx @@ -62,7 +62,7 @@ const modelCategories: ModelCategory[] = [ ], anthropicModels: [ { - id: "claude-3-7-sonnet-latest", + id: "claude-3-7-sonnet-20250219", name: "Claude 3.7 Sonnet", description: "Best overall performance for problem extraction" }, @@ -108,7 +108,7 @@ const modelCategories: ModelCategory[] = [ ], anthropicModels: [ { - id: "claude-3-7-sonnet-latest", + id: "claude-3-7-sonnet-20250219", name: "Claude 3.7 Sonnet", description: "Strong overall performance for coding tasks" }, @@ -154,7 +154,7 @@ const modelCategories: ModelCategory[] = [ ], anthropicModels: [ { - id: "claude-3-7-sonnet-latest", + id: "claude-3-7-sonnet-20250219", name: "Claude 3.7 Sonnet", description: "Best for analyzing code and error messages" }, @@ -248,9 +248,9 @@ export function SettingsDialog({ open: externalOpen, onOpenChange }: SettingsDia setSolutionModel("gemini-1.5-pro"); setDebuggingModel("gemini-1.5-pro"); } else if (provider === "anthropic") { - setExtractionModel("claude-3-7-sonnet-latest"); - setSolutionModel("claude-3-7-sonnet-latest"); - setDebuggingModel("claude-3-7-sonnet-latest"); + setExtractionModel("claude-3-7-sonnet-20250219"); + setSolutionModel("claude-3-7-sonnet-20250219"); + setDebuggingModel("claude-3-7-sonnet-20250219"); } }; @@ -583,4 +583,4 @@ export function SettingsDialog({ open: externalOpen, onOpenChange }: SettingsDia ); -} \ No newline at end of file +}