diff --git a/apps/bubblelab-api/src/config/bubbleflow-generation-prompts.ts b/apps/bubblelab-api/src/config/bubbleflow-generation-prompts.ts index 2a747560..a3767c5f 100644 --- a/apps/bubblelab-api/src/config/bubbleflow-generation-prompts.ts +++ b/apps/bubblelab-api/src/config/bubbleflow-generation-prompts.ts @@ -416,13 +416,13 @@ GOOD EXAMPLE: \`\`\`typescript // Searches for academic papers related to the topic variable and summarizes each one's key findings. // The search behavior is controlled by the task prompt - modify it to focus on specific aspects, -// add date ranges, or filter by publication type. Currently using gemini-3-pro-preview for thorough -// multi-step research; switch to gemini-2.5-flash if you need faster results with less depth. +// add date ranges, or filter by publication type. Currently using gemini-2.5-flash for thorough +// multi-step research; current default is gemini-2.5-flash for balanced speed and cost. // Returns an array of papers (each with title, url, authors, publicationDate, summary, and // relevance explanation) plus an overallSummary that synthesizes all findings for downstream use. const researchTool = new ResearchAgentTool({ - task: \`Find research papers about \${topic}...\`, - model: 'google/gemini-3-pro-preview', + task: \`Find research papers about \${ topic }...\`, + model: 'google/gemini-2.5-flash', expectedResultSchema: z.object({...}) }); @@ -500,7 +500,7 @@ MODEL SELECTION TIER 1 - BEST (${RECOMMENDED_MODELS.BEST}): Use for: Complex reasoning, tool-calling agents, research-agent-tool, code generation, -high-iteration tasks (50+), critical accuracy requirements +high-iteration tasks (50+), critical accuracy requirements (Note: gemini-2.5-flash is now the default for BEST) TIER 2 - PRO (${RECOMMENDED_MODELS.PRO}, ${RECOMMENDED_MODELS.PRO_ALT}): Use for: Multi-step reasoning, strategic planning, complex data analysis diff --git a/apps/bubblelab-api/src/services/ai/bubbleflow-generator.workflow.ts b/apps/bubblelab-api/src/services/ai/bubbleflow-generator.workflow.ts index 1b9511d6..0f6d7afd 100644 --- a/apps/bubblelab-api/src/services/ai/bubbleflow-generator.workflow.ts +++ b/apps/bubblelab-api/src/services/ai/bubbleflow-generator.workflow.ts @@ -531,10 +531,10 @@ ${AI_AGENT_BEHAVIOR_INSTRUCTIONS}`; model: { reasoningEffort: 'medium', - model: 'google/gemini-3-flash-preview', + model: 'google/gemini-2.5-flash', temperature: 0.3, backupModel: { - model: 'anthropic/claude-sonnet-4-5', + model: 'google/gemini-2.5-flash-lite', temperature: 0.3, }, }, diff --git a/packages/bubble-shared-schemas/src/bubbleflow-generation-prompts.ts b/packages/bubble-shared-schemas/src/bubbleflow-generation-prompts.ts index 22482a5d..de095fdf 100644 --- a/packages/bubble-shared-schemas/src/bubbleflow-generation-prompts.ts +++ b/packages/bubble-shared-schemas/src/bubbleflow-generation-prompts.ts @@ -8,11 +8,11 @@ import { AvailableModel } from './ai-models.js'; // Model constants for AI agent instructions export const RECOMMENDED_MODELS = { - BEST: 'google/gemini-3-pro-preview', + BEST: 'google/gemini-2.5-flash', BEST_ALT: 'openai/gpt-5.2', - PRO: 'google/gemini-3-flash-preview', + PRO: 'google/gemini-2.5-flash', PRO_ALT: 'anthropic/claude-sonnet-4-5', - FAST: 'google/gemini-3-flash-preview', + FAST: 'google/gemini-2.5-flash', FAST_ALT: 'anthropic/claude-haiku-4-5', LITE: 'google/gemini-2.5-flash-lite', IMAGE: 'google/gemini-3-pro-image-preview', diff --git a/packages/bubble-shared-schemas/src/coffee.ts b/packages/bubble-shared-schemas/src/coffee.ts index 6657cb64..58beef80 100644 --- a/packages/bubble-shared-schemas/src/coffee.ts +++ b/packages/bubble-shared-schemas/src/coffee.ts @@ -10,7 +10,7 @@ import { CredentialType } from './types.js'; // Constants export const COFFEE_MAX_ITERATIONS = 30; export const COFFEE_MAX_QUESTIONS = 5; -export const COFFEE_DEFAULT_MODEL = 'google/gemini-3-pro-preview' as const; +export const COFFEE_DEFAULT_MODEL = 'google/gemini-2.5-flash' as const; // ============================================================================ // Clarification Schemas