Fix non-existent Gemini 3 models to Gemini 2.5
Browse files103 unmodified lines10410510610710810911044 unmodified lines15515615715815916016184 unmodified lines24624724824925025125243 unmodified lines29629729829930030130230 unmodified lines333334335336337338339103 unmodified linesexport const boostPrompt = async (prompt: string): Promise<string> => {try {const response = await getAI().models.generateContent({model: 'gemini-3-flash-preview',contents: `Rewrite and enrich the following text to be a perfect command (prompt) or a great project idea to be given to an AI assistant.- If it's a short and simple idea, detail it and add depth.- If it's complex and messy, structure and clarify it.44 unmodified lines: "";const response = await getAI().models.generateContent({model: 'gemini-3.1-pro-preview',contents: userPrompt + memoryContext,config: {systemInstruction: PLANNER_SYSTEM_INSTRUCTION,84 unmodified linesreturn "--- Image could not be generated ---\n" + stepDescription;} else if (stepType === NoteType.TEXT) {const textPromise = getAI().models.generateContent({model: 'gemini-3-flash-preview',contents: contextPrompt,}).catch(e => {console.error("Text content generation error:", e);43 unmodified lines// Code generationtry {const response = await getAI().models.generateContent({model: 'gemini-3-flash-preview',contents: contextPrompt,});return response.text || "Content could not be generated.";30 unmodified lines];const response = await getAI().models.generateContent({model: 'gemini-3-flash-preview',contents: contents,config: {systemInstruction: `You are an expert in the "MindSpark" project.103 unmodified lines10410510610710810911044 unmodified lines15515615715815916016184 unmodified lines24624724824925025125243 unmodified lines29629729829930030130230 unmodified lines333334335336337338339103 unmodified linesexport const boostPrompt = async (prompt: string): Promise<string> => {try {const response = await getAI().models.generateContent({model: 'gemini-2.5-flash',contents: `Rewrite and enrich the following text to be a perfect command (prompt) or a great project idea to be given to an AI assistant.- If it's a short and simple idea, detail it and add depth.- If it's complex and messy, structure and clarify it.44 unmodified lines: "";const response = await getAI().models.generateContent({model: 'gemini-2.5-pro',contents: userPrompt + memoryContext,config: {systemInstruction: PLANNER_SYSTEM_INSTRUCTION,84 unmodified linesreturn "--- Image could not be generated ---\n" + stepDescription;} else if (stepType === NoteType.TEXT) {const textPromise = getAI().models.generateContent({model: 'gemini-2.5-flash',contents: contextPrompt,}).catch(e => {console.error("Text content generation error:", e);43 unmodified lines// Code generationtry {const response = await getAI().models.generateContent({model: 'gemini-2.5-flash',contents: contextPrompt,});return response.text || "Content could not be generated.";30 unmodified lines];const response = await getAI().models.generateContent({model: 'gemini-2.5-flash',contents: contents,config: {systemInstruction: `You are an expert in the "MindSpark" project.
services/geminiService.ts+5-5