Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions electron/LLMHelper.ts
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ export class LLMHelper {
this.initializeOllamaModel()
} else if (apiKey) {
const genAI = new GoogleGenerativeAI(apiKey)
this.model = genAI.getGenerativeModel({ model: "gemini-2.0-flash" })
this.model = genAI.getGenerativeModel({ model: "gemini-2.5-flash" })
console.log("[LLMHelper] Using Google Gemini")
} else {
throw new Error("Either provide Gemini API key or enable Ollama mode")
Expand Down Expand Up @@ -298,7 +298,7 @@ export class LLMHelper {
}

public getCurrentModel(): string {
return this.useOllama ? this.ollamaModel : "gemini-2.0-flash";
return this.useOllama ? this.ollamaModel : "gemini-2.5-flash";
}

public async switchToOllama(model?: string, url?: string): Promise<void> {
Expand All @@ -318,7 +318,7 @@ export class LLMHelper {
public async switchToGemini(apiKey?: string): Promise<void> {
if (apiKey) {
const genAI = new GoogleGenerativeAI(apiKey);
this.model = genAI.getGenerativeModel({ model: "gemini-2.0-flash" });
this.model = genAI.getGenerativeModel({ model: "gemini-2.5-flash" });
}

if (!this.model && !apiKey) {
Expand Down
2 changes: 1 addition & 1 deletion src/components/ui/ModelSelector.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -87,7 +87,7 @@ const ModelSelector: React.FC<ModelSelectorProps> = ({ onModelChange, onChatOpen
if (result.success) {
await loadCurrentConfig();
setConnectionStatus('success');
onModelChange?.(selectedProvider, selectedProvider === 'ollama' ? selectedOllamaModel : 'gemini-2.0-flash');
onModelChange?.(selectedProvider, selectedProvider === 'ollama' ? selectedOllamaModel : 'gemini-2.5-flash');
// Auto-open chat window after successful model change
setTimeout(() => {
onChatOpen?.();
Expand Down