Skip to content
Source
Sign inSign up
TanStack/cli

fix(create): replace retired gemini-2.0-flash-exp in AI chat templates #562

Mergedpcbeingused333(GitHub profile, opens in a new tab)merged 1 commit intomain fromrefs/pull/562/headmerged by tannerlinsley

Showing 5 changed files with 9 additions and 4 deletions (loading 2).

x
0 of 5 viewed, 5 left
5 additions and 0 deletions.changeset/gemini-current-model.mdAdded
View file
@@ -0,0 +1,5 @@
+---
+"@tanstack/create": patch
+---
+​
+Use `gemini-3.8-flash` instead of the retired `gemini-2.0-flash-exp` in the generated AI chat routes (AI add-on, resume and events examples).
2 additions and 2 deletionspackages/create/src/frameworks/react/add-ons/ai/assets/src/routes/demo/api.ai.chat.tsModified
View file
@@ -59,7 +59,7 @@
model = 'gpt-4o'
} else if (process.env.GEMINI_API_KEY) {
provider = 'gemini'
- model = 'gemini-2.0-flash-exp'
+ model = 'gemini-3.8-flash'
​
// Adapter factory pattern for multi-vendor support
@@ -67,7 +67,7 @@
anthropic: () =>
anthropicText((model || 'claude-haiku-4-5') as any),
openai: () => openaiText((model || 'gpt-4o') as any),
- gemini: () => geminiText((model || 'gemini-2.0-flash-exp') as any),
+ gemini: () => geminiText((model || 'gemini-3.8-flash') as any),