From a2ad2cc642f7b8aaea8f0ce54878ce9d5b7e86eb Mon Sep 17 00:00:00 2001 From: totargaming Date: Wed, 9 Apr 2025 21:40:18 +0930 Subject: [PATCH 1/7] Update model selections in README and code to reflect new naming conventions and improve clarity --- README.md | 4 +-- electron/ConfigHelper.ts | 16 +++++----- electron/ProcessingHelper.ts | 6 ++-- src/components/Settings/SettingsDialog.tsx | 36 +++++++++++----------- 4 files changed, 31 insertions(+), 31 deletions(-) diff --git a/README.md b/README.md index 7c1dffe..3c080fd 100644 --- a/README.md +++ b/README.md @@ -57,7 +57,7 @@ All it takes is modest JavaScript/TypeScript knowledge and understanding of the - 💡 Solution Generation: Get detailed explanations and solutions with time/space complexity analysis - 🔧 Real-time Debugging: Debug your code with AI assistance and structured feedback - 🎨 Advanced Window Management: Freely move, resize, change opacity, and zoom the window -- 🔄 Model Selection: Choose between GPT-4o and GPT-4o-mini for different processing stages +- 🔄 Model Selection: Choose between GPT-4o and o3-mini for different processing stages - 🔒 Privacy-Focused: Your API key and data never leave your computer except for OpenAI API calls ## Global Commands @@ -261,7 +261,7 @@ To add new models, simply extend the API integration in `electron/ProcessingHelp ## Configuration - **OpenAI API Key**: Your personal API key is stored locally and only used for API calls to OpenAI -- **Model Selection**: You can choose between GPT-4o and GPT-4o-mini for each stage of processing: +- **Model Selection**: You can choose between GPT-4o and o3-mini for each stage of processing: - Problem Extraction: Analyzes screenshots to understand the coding problem - Solution Generation: Creates optimized solutions with explanations - Debugging: Provides detailed analysis of errors and improvement suggestions diff --git a/electron/ConfigHelper.ts b/electron/ConfigHelper.ts index 8753742..5bf6367 100644 --- a/electron/ConfigHelper.ts +++ b/electron/ConfigHelper.ts @@ -60,8 +60,8 @@ export class ConfigHelper extends EventEmitter { */ private sanitizeModelSelection(model: string, provider: "openai" | "gemini" | "anthropic"): string { if (provider === "openai") { - // Only allow gpt-4o and gpt-4o-mini for OpenAI - const allowedModels = ['gpt-4o', 'gpt-4o-mini']; + // Only allow gpt-4o and o3-mini for OpenAI + const allowedModels = ['gpt-4o', 'o3-mini']; if (!allowedModels.includes(model)) { console.warn(`Invalid OpenAI model specified: ${model}. Using default model: gpt-4o`); return 'gpt-4o'; @@ -77,10 +77,10 @@ export class ConfigHelper extends EventEmitter { return model; } else if (provider === "anthropic") { // Only allow Claude models - const allowedModels = ['claude-3-opus-20240229', 'claude-3-sonnet-20240229', 'claude-3-haiku-20240307']; + const allowedModels = ['claude-3-7-sonnet-latest', '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-opus-20240229`); - return 'claude-3-opus-20240229'; + console.warn(`Invalid Anthropic model specified: ${model}. Using default model: claude-3-7-sonnet-latest`); + return 'claude-3-7-sonnet-latest'; } 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-opus-20240229"; - updates.solutionModel = "claude-3-opus-20240229"; - updates.debuggingModel = "claude-3-opus-20240229"; + updates.extractionModel = "claude-3-7-sonnet-latest"; + updates.solutionModel = "claude-3-7-sonnet-latest"; + updates.debuggingModel = "claude-3-7-sonnet-latest"; } else { updates.extractionModel = "gemini-2.0-flash"; updates.solutionModel = "gemini-2.0-flash"; diff --git a/electron/ProcessingHelper.ts b/electron/ProcessingHelper.ts index f12d44d..c2c6d37 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-opus-20240229", + model: config.extractionModel || "claude-3-7-sonnet-latest", 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-opus-20240229", + model: config.solutionModel || "claude-3-7-sonnet-latest", 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-opus-20240229", + model: config.debuggingModel || "claude-3-7-sonnet-latest", max_tokens: 4000, messages: messages, temperature: 0.2 diff --git a/src/components/Settings/SettingsDialog.tsx b/src/components/Settings/SettingsDialog.tsx index 8a0cb5e..12d67f9 100644 --- a/src/components/Settings/SettingsDialog.tsx +++ b/src/components/Settings/SettingsDialog.tsx @@ -43,8 +43,8 @@ const modelCategories: ModelCategory[] = [ description: "Best overall performance for problem extraction" }, { - id: "gpt-4o-mini", - name: "gpt-4o-mini", + id: "o3-mini", + name: "o3-mini", description: "Faster, more cost-effective option" } ], @@ -62,12 +62,12 @@ const modelCategories: ModelCategory[] = [ ], anthropicModels: [ { - id: "claude-3-opus-20240229", - name: "Claude 3 Opus", + id: "claude-3-7-sonnet-latest", + name: "Claude 3.7 Sonnet", description: "Best overall performance for problem extraction" }, { - id: "claude-3-sonnet-20240229", + id: "claude-3-5-sonnet-20241022", name: "Claude 3 Sonnet", description: "Balanced performance and speed" }, @@ -89,8 +89,8 @@ const modelCategories: ModelCategory[] = [ description: "Strong overall performance for coding tasks" }, { - id: "gpt-4o-mini", - name: "gpt-4o-mini", + id: "o3-mini", + name: "o3-mini", description: "Faster, more cost-effective option" } ], @@ -108,12 +108,12 @@ const modelCategories: ModelCategory[] = [ ], anthropicModels: [ { - id: "claude-3-opus-20240229", - name: "Claude 3 Opus", + id: "claude-3-7-sonnet-latest", + name: "Claude 3.7 Sonnet", description: "Strong overall performance for coding tasks" }, { - id: "claude-3-sonnet-20240229", + id: "claude-3-5-sonnet-20241022", name: "Claude 3 Sonnet", description: "Balanced performance and speed" }, @@ -135,8 +135,8 @@ const modelCategories: ModelCategory[] = [ description: "Best for analyzing code and error messages" }, { - id: "gpt-4o-mini", - name: "gpt-4o-mini", + id: "o3-mini", + name: "o3-mini", description: "Faster, more cost-effective option" } ], @@ -154,12 +154,12 @@ const modelCategories: ModelCategory[] = [ ], anthropicModels: [ { - id: "claude-3-opus-20240229", - name: "Claude 3 Opus", + id: "claude-3-7-sonnet-latest", + name: "Claude 3.7 Sonnet", description: "Best for analyzing code and error messages" }, { - id: "claude-3-sonnet-20240229", + id: "claude-3-5-sonnet-20241022", name: "Claude 3 Sonnet", description: "Balanced performance and speed" }, @@ -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-opus-20240229"); - setSolutionModel("claude-3-opus-20240229"); - setDebuggingModel("claude-3-opus-20240229"); + setExtractionModel("claude-3-7-sonnet-latest"); + setSolutionModel("claude-3-7-sonnet-latest"); + setDebuggingModel("claude-3-7-sonnet-latest"); } }; From 609c8ed6f1b8fd79c4dee1e26047adc33d064fce Mon Sep 17 00:00:00 2001 From: totargaming Date: Wed, 9 Apr 2025 23:13:47 +0930 Subject: [PATCH 2/7] Update model selection terminology from 'o3-mini' to 'gpt-4o-mini' in README and code for consistency --- README.md | 4 ++-- electron/ConfigHelper.ts | 4 ++-- src/components/Settings/SettingsDialog.tsx | 12 ++++++------ 3 files changed, 10 insertions(+), 10 deletions(-) diff --git a/README.md b/README.md index 3c080fd..14d7f75 100644 --- a/README.md +++ b/README.md @@ -57,7 +57,7 @@ All it takes is modest JavaScript/TypeScript knowledge and understanding of the - 💡 Solution Generation: Get detailed explanations and solutions with time/space complexity analysis - 🔧 Real-time Debugging: Debug your code with AI assistance and structured feedback - 🎨 Advanced Window Management: Freely move, resize, change opacity, and zoom the window -- 🔄 Model Selection: Choose between GPT-4o and o3-mini for different processing stages +- 🔄 Model Selection: Choose between GPT-4o and gpt-4o-mini for different processing stages - 🔒 Privacy-Focused: Your API key and data never leave your computer except for OpenAI API calls ## Global Commands @@ -261,7 +261,7 @@ To add new models, simply extend the API integration in `electron/ProcessingHelp ## Configuration - **OpenAI API Key**: Your personal API key is stored locally and only used for API calls to OpenAI -- **Model Selection**: You can choose between GPT-4o and o3-mini for each stage of processing: +- **Model Selection**: You can choose between GPT-4o and gpt-4o-mini for each stage of processing: - Problem Extraction: Analyzes screenshots to understand the coding problem - Solution Generation: Creates optimized solutions with explanations - Debugging: Provides detailed analysis of errors and improvement suggestions diff --git a/electron/ConfigHelper.ts b/electron/ConfigHelper.ts index 5bf6367..db8d3d2 100644 --- a/electron/ConfigHelper.ts +++ b/electron/ConfigHelper.ts @@ -60,8 +60,8 @@ export class ConfigHelper extends EventEmitter { */ private sanitizeModelSelection(model: string, provider: "openai" | "gemini" | "anthropic"): string { if (provider === "openai") { - // Only allow gpt-4o and o3-mini for OpenAI - const allowedModels = ['gpt-4o', 'o3-mini']; + // Only allow gpt-4o and gpt-4o-mini for OpenAI + const allowedModels = ['gpt-4o', 'gpt-4o-mini']; if (!allowedModels.includes(model)) { console.warn(`Invalid OpenAI model specified: ${model}. Using default model: gpt-4o`); return 'gpt-4o'; diff --git a/src/components/Settings/SettingsDialog.tsx b/src/components/Settings/SettingsDialog.tsx index 12d67f9..a495485 100644 --- a/src/components/Settings/SettingsDialog.tsx +++ b/src/components/Settings/SettingsDialog.tsx @@ -43,8 +43,8 @@ const modelCategories: ModelCategory[] = [ description: "Best overall performance for problem extraction" }, { - id: "o3-mini", - name: "o3-mini", + id: "gpt-4o-mini", + name: "gpt-4o-mini", description: "Faster, more cost-effective option" } ], @@ -89,8 +89,8 @@ const modelCategories: ModelCategory[] = [ description: "Strong overall performance for coding tasks" }, { - id: "o3-mini", - name: "o3-mini", + id: "gpt-4o-mini", + name: "gpt-4o-mini", description: "Faster, more cost-effective option" } ], @@ -135,8 +135,8 @@ const modelCategories: ModelCategory[] = [ description: "Best for analyzing code and error messages" }, { - id: "o3-mini", - name: "o3-mini", + id: "gpt-4o-mini", + name: "gpt-4o-mini", description: "Faster, more cost-effective option" } ], From e8158e8dcc9161d7e48f4e545845b0eba41700b2 Mon Sep 17 00:00:00 2001 From: Elvis Tran <40386529+totargaming@users.noreply.github.com> Date: Thu, 10 Apr 2025 00:46:28 +0930 Subject: [PATCH 3/7] + have changed to current snapshot + 'gpt' => 'GPT' --- electron/ConfigHelper.ts | 14 +++++++------- electron/ProcessingHelper.ts | 8 ++++---- src/components/Settings/SettingsDialog.tsx | 14 +++++++------- 3 files changed, 18 insertions(+), 18 deletions(-) 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 +} From 692b818e2692ba9f2edb6b66a6fb4aaf3004dc86 Mon Sep 17 00:00:00 2001 From: Elvis Tran <40386529+totargaming@users.noreply.github.com> Date: Thu, 10 Apr 2025 00:57:18 +0930 Subject: [PATCH 4/7] Update README.md Change from 'gpt' back to 'GPT' --- README.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index 14d7f75..7c1dffe 100644 --- a/README.md +++ b/README.md @@ -57,7 +57,7 @@ All it takes is modest JavaScript/TypeScript knowledge and understanding of the - 💡 Solution Generation: Get detailed explanations and solutions with time/space complexity analysis - 🔧 Real-time Debugging: Debug your code with AI assistance and structured feedback - 🎨 Advanced Window Management: Freely move, resize, change opacity, and zoom the window -- 🔄 Model Selection: Choose between GPT-4o and gpt-4o-mini for different processing stages +- 🔄 Model Selection: Choose between GPT-4o and GPT-4o-mini for different processing stages - 🔒 Privacy-Focused: Your API key and data never leave your computer except for OpenAI API calls ## Global Commands @@ -261,7 +261,7 @@ To add new models, simply extend the API integration in `electron/ProcessingHelp ## Configuration - **OpenAI API Key**: Your personal API key is stored locally and only used for API calls to OpenAI -- **Model Selection**: You can choose between GPT-4o and gpt-4o-mini for each stage of processing: +- **Model Selection**: You can choose between GPT-4o and GPT-4o-mini for each stage of processing: - Problem Extraction: Analyzes screenshots to understand the coding problem - Solution Generation: Creates optimized solutions with explanations - Debugging: Provides detailed analysis of errors and improvement suggestions From 80e2d02a4099a061dcb909f1b05eee32b4629371 Mon Sep 17 00:00:00 2001 From: Elvis Tran <40386529+totargaming@users.noreply.github.com> Date: Thu, 10 Apr 2025 00:58:23 +0930 Subject: [PATCH 5/7] Update ConfigHelper.ts --- electron/ConfigHelper.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/electron/ConfigHelper.ts b/electron/ConfigHelper.ts index 3c97b0d..6d1d2db 100644 --- a/electron/ConfigHelper.ts +++ b/electron/ConfigHelper.ts @@ -77,7 +77,7 @@ export class ConfigHelper extends EventEmitter { return model; } else if (provider === "anthropic") { // Only allow Claude models - const allowedModels = ['claude-3-7-sonnet-20250219', 'claude-3-5-sonnet-20241022', 'claude-3-haiku-20240307']; + const allowedModels = ['claude-3-7-sonnet-20250219', 'claude-3-5-sonnet-20241022', 'claude-3-opus-20240229']; if (!allowedModels.includes(model)) { console.warn(`Invalid Anthropic model specified: ${model}. Using default model: claude-3-7-sonnet-20250219`); return 'claude-3-7-sonnet-20250219'; From ce532a3bcb7a23c6b360d7cfe109723dcf747d9a Mon Sep 17 00:00:00 2001 From: Elvis Tran <40386529+totargaming@users.noreply.github.com> Date: Thu, 10 Apr 2025 01:01:04 +0930 Subject: [PATCH 6/7] Update SettingsDialog.tsx --- src/components/Settings/SettingsDialog.tsx | 18 +++++++++--------- 1 file changed, 9 insertions(+), 9 deletions(-) diff --git a/src/components/Settings/SettingsDialog.tsx b/src/components/Settings/SettingsDialog.tsx index 4c33fb9..45ba98b 100644 --- a/src/components/Settings/SettingsDialog.tsx +++ b/src/components/Settings/SettingsDialog.tsx @@ -72,9 +72,9 @@ const modelCategories: ModelCategory[] = [ description: "Balanced performance and speed" }, { - id: "claude-3-haiku-20240307", - name: "Claude 3 Haiku", - description: "Fastest, most cost-effective option" + id: "claude-3-opus-20240229", + name: "Claude 3 Opus", + description: "Top-level intelligence, fluency, and understanding" } ] }, @@ -118,9 +118,9 @@ const modelCategories: ModelCategory[] = [ description: "Balanced performance and speed" }, { - id: "claude-3-haiku-20240307", - name: "Claude 3 Haiku", - description: "Faster, more cost-effective option" + id: "claude-3-opus-20240229", + name: "Claude 3 Opus", + description: "Top-level intelligence, fluency, and understanding" } ] }, @@ -164,9 +164,9 @@ const modelCategories: ModelCategory[] = [ description: "Balanced performance and speed" }, { - id: "claude-3-haiku-20240307", - name: "Claude 3 Haiku", - description: "Faster, more cost-effective option" + id: "claude-3-opus-20240229", + name: "Claude 3 Opus", + description: "Top-level intelligence, fluency, and understanding" } ] } From a87d127914f5c2ef41b6c875d7fc9165944e40ee Mon Sep 17 00:00:00 2001 From: Elvis Tran <40386529+totargaming@users.noreply.github.com> Date: Thu, 10 Apr 2025 01:02:54 +0930 Subject: [PATCH 7/7] Update SettingsDialog.tsx --- src/components/Settings/SettingsDialog.tsx | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/components/Settings/SettingsDialog.tsx b/src/components/Settings/SettingsDialog.tsx index 45ba98b..463ea12 100644 --- a/src/components/Settings/SettingsDialog.tsx +++ b/src/components/Settings/SettingsDialog.tsx @@ -68,7 +68,7 @@ const modelCategories: ModelCategory[] = [ }, { id: "claude-3-5-sonnet-20241022", - name: "Claude 3 Sonnet", + name: "Claude 3.5 Sonnet", description: "Balanced performance and speed" }, { @@ -114,7 +114,7 @@ const modelCategories: ModelCategory[] = [ }, { id: "claude-3-5-sonnet-20241022", - name: "Claude 3 Sonnet", + name: "Claude 3.5 Sonnet", description: "Balanced performance and speed" }, { @@ -160,7 +160,7 @@ const modelCategories: ModelCategory[] = [ }, { id: "claude-3-5-sonnet-20241022", - name: "Claude 3 Sonnet", + name: "Claude 3.5 Sonnet", description: "Balanced performance and speed" }, {