Skip to content

Commit ea25ea3

Browse files
committed
chore: switch chat gateway model to Gemini 3 Flash
1 parent 8a43f4d commit ea25ea3

2 files changed

Lines changed: 4 additions & 4 deletions

File tree

src/domains/chat/index.test.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -285,7 +285,7 @@ describe("generateContextualRetrievalQuery", () => {
285285
});
286286

287287
expect(generateText).toHaveBeenCalledWith({
288-
model: "deepseek/deepseek-v4-flash",
288+
model: "google/gemini-3-flash",
289289
prompt: expect.stringContaining("Knowhere retrieval is stateless"),
290290
});
291291
expect(query).toBe("Tesla Q4 2025 Update energy storage deployments");
@@ -311,7 +311,7 @@ describe("generateGroundedAnswer", () => {
311311
});
312312

313313
expect(generateText).toHaveBeenCalledWith({
314-
model: "deepseek/deepseek-v4-flash",
314+
model: "google/gemini-3-flash",
315315
prompt: expect.stringContaining("PR-E wires chat to Knowhere retrieval."),
316316
});
317317
expect(answer).toBe("PR-E wires chat to retrieval.");

src/lib/ai.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,9 +4,9 @@
44
* The Gateway gives us one key, usage monitoring, and easy provider/model
55
* swaps without code changes. The AI SDK picks up `AI_GATEWAY_API_KEY`
66
* automatically when a model is passed as a plain string like
7-
* `"deepseek/deepseek-v4-flash"`, so this module just owns the model choice.
7+
* `"google/gemini-3-flash"`, so this module just owns the model choice.
88
*
99
* Change CHAT_MODEL here (or via env) when we want to try a different model.
1010
*/
1111

12-
export const CHAT_MODEL = process.env.CHAT_MODEL ?? "deepseek/deepseek-v4-flash"
12+
export const CHAT_MODEL = process.env.CHAT_MODEL ?? "google/gemini-3-flash"

0 commit comments

Comments
 (0)