Skip to content
Merged
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
2 changes: 1 addition & 1 deletion scripts/verify-gemini.js
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ async function verifyGemini() {

console.log('Found GEMINI_API_KEY, testing...');
const genAI = new GoogleGenerativeAI(apiKey);
const model = genAI.getGenerativeModel({ model: "gemini-2.5-flash" });
const model = genAI.getGenerativeModel({ model: "gemini-3.8-flash" });

try {
const result = await model.generateContent("Hello, are you working?");
Expand Down
2 changes: 1 addition & 1 deletion src/app/api/gemini/route.ts
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ export const dynamic = "force-dynamic";

// Initialize Gemini with server-side key
const genAI = new GoogleGenerativeAI(process.env.GEMINI_API_KEY || "");
const model = genAI.getGenerativeModel({ model: "gemini-2.5-flash" });
const model = genAI.getGenerativeModel({ model: "gemini-3.8-flash" });

interface GeminiErrorPayload {
error: string;
Expand Down
2 changes: 1 addition & 1 deletion src/lib/llm.ts
Original file line number Diff line number Diff line change
Expand Up @@ -442,7 +442,7 @@ class GeminiEngineWrapper implements LLMEngine {

const genAI = new GoogleGenerativeAI(apiKey);
const model = genAI.getGenerativeModel({
model: "gemini-2.5-flash",
model: "gemini-3.8-flash",
});
const chat = model.startChat({ history });

Expand Down
Loading