From 636694053a17dad4a098a39de818ee2aa7b16e8a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E2=80=9Cchrisraygill=E2=80=9D?= <“chgill@google.com”> Date: Fri, 7 Feb 2025 14:59:41 -0500 Subject: [PATCH] fixes --- docs/nextjs.md | 9 +++------ 1 file changed, 3 insertions(+), 6 deletions(-) diff --git a/docs/nextjs.md b/docs/nextjs.md index e9b1d4bfd..454f4e28b 100644 --- a/docs/nextjs.md +++ b/docs/nextjs.md @@ -64,12 +64,12 @@ For example: ```ts 'use server'; -import { gemini15Flash, googleAI } from "@genkit-ai/googleai"; +import { gemini20Flash, googleAI } from "@genkit-ai/googleai"; import { genkit, z } from "genkit"; const ai = genkit({ plugins: [googleAI()], - model: gemini15Flash, + model: gemini20Flash, }); export const menuSuggestionFlow = ai.defineFlow( @@ -79,10 +79,7 @@ export const menuSuggestionFlow = ai.defineFlow( outputSchema: z.string(), }, async (restaurantTheme) => { - const { text } = await ai.generate({ - model: gemini15Flash, - prompt: `Invent a menu item for a ${restaurantTheme} themed restaurant.`, - }); + const { text } = await ai.generate('Invent a menu item for a ${restaurantTheme} themed restaurant.'); return text; } );