+ have changed to current snapshot

+ 'gpt' => 'GPT'
main
Elvis Tran 2 years ago
parent 609c8ed6f1
commit e8158e8dcc

@ -77,10 +77,10 @@ export class ConfigHelper extends EventEmitter {
return model; return model;
} else if (provider === "anthropic") { } else if (provider === "anthropic") {
// Only allow Claude models // 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)) { if (!allowedModels.includes(model)) {
console.warn(`Invalid Anthropic model specified: ${model}. Using default model: 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-latest'; return 'claude-3-7-sonnet-20250219';
} }
return model; return model;
} }
@ -175,9 +175,9 @@ export class ConfigHelper extends EventEmitter {
updates.solutionModel = "gpt-4o"; updates.solutionModel = "gpt-4o";
updates.debuggingModel = "gpt-4o"; updates.debuggingModel = "gpt-4o";
} else if (updates.apiProvider === "anthropic") { } else if (updates.apiProvider === "anthropic") {
updates.extractionModel = "claude-3-7-sonnet-latest"; updates.extractionModel = "claude-3-7-sonnet-20250219";
updates.solutionModel = "claude-3-7-sonnet-latest"; updates.solutionModel = "claude-3-7-sonnet-20250219";
updates.debuggingModel = "claude-3-7-sonnet-latest"; updates.debuggingModel = "claude-3-7-sonnet-20250219";
} else { } else {
updates.extractionModel = "gemini-2.0-flash"; updates.extractionModel = "gemini-2.0-flash";
updates.solutionModel = "gemini-2.0-flash"; updates.solutionModel = "gemini-2.0-flash";
@ -397,4 +397,4 @@ export class ConfigHelper extends EventEmitter {
} }
// Export a singleton instance // Export a singleton instance
export const configHelper = new ConfigHelper(); export const configHelper = new ConfigHelper();

@ -604,7 +604,7 @@ export class ProcessingHelper {
]; ];
const response = await this.anthropicClient.messages.create({ 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, max_tokens: 4000,
messages: messages, messages: messages,
temperature: 0.2 temperature: 0.2
@ -858,7 +858,7 @@ Your solution should be efficient, well-commented, and handle edge cases.
// Send to Anthropic API // Send to Anthropic API
const response = await this.anthropicClient.messages.create({ 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, max_tokens: 4000,
messages: messages, messages: messages,
temperature: 0.2 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({ 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, max_tokens: 4000,
messages: messages, messages: messages,
temperature: 0.2 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) mainWindow.webContents.send(this.deps.PROCESSING_EVENTS.NO_SCREENSHOTS)
} }
} }
} }

@ -62,7 +62,7 @@ const modelCategories: ModelCategory[] = [
], ],
anthropicModels: [ anthropicModels: [
{ {
id: "claude-3-7-sonnet-latest", id: "claude-3-7-sonnet-20250219",
name: "Claude 3.7 Sonnet", name: "Claude 3.7 Sonnet",
description: "Best overall performance for problem extraction" description: "Best overall performance for problem extraction"
}, },
@ -108,7 +108,7 @@ const modelCategories: ModelCategory[] = [
], ],
anthropicModels: [ anthropicModels: [
{ {
id: "claude-3-7-sonnet-latest", id: "claude-3-7-sonnet-20250219",
name: "Claude 3.7 Sonnet", name: "Claude 3.7 Sonnet",
description: "Strong overall performance for coding tasks" description: "Strong overall performance for coding tasks"
}, },
@ -154,7 +154,7 @@ const modelCategories: ModelCategory[] = [
], ],
anthropicModels: [ anthropicModels: [
{ {
id: "claude-3-7-sonnet-latest", id: "claude-3-7-sonnet-20250219",
name: "Claude 3.7 Sonnet", name: "Claude 3.7 Sonnet",
description: "Best for analyzing code and error messages" description: "Best for analyzing code and error messages"
}, },
@ -248,9 +248,9 @@ export function SettingsDialog({ open: externalOpen, onOpenChange }: SettingsDia
setSolutionModel("gemini-1.5-pro"); setSolutionModel("gemini-1.5-pro");
setDebuggingModel("gemini-1.5-pro"); setDebuggingModel("gemini-1.5-pro");
} else if (provider === "anthropic") { } else if (provider === "anthropic") {
setExtractionModel("claude-3-7-sonnet-latest"); setExtractionModel("claude-3-7-sonnet-20250219");
setSolutionModel("claude-3-7-sonnet-latest"); setSolutionModel("claude-3-7-sonnet-20250219");
setDebuggingModel("claude-3-7-sonnet-latest"); setDebuggingModel("claude-3-7-sonnet-20250219");
} }
}; };
@ -583,4 +583,4 @@ export function SettingsDialog({ open: externalOpen, onOpenChange }: SettingsDia
</DialogContent> </DialogContent>
</Dialog> </Dialog>
); );
} }

Loading…
Cancel
Save