Skip to content

Commit

Permalink
fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
“chrisraygill” committed Feb 7, 2025
1 parent 3fb4aa6 commit 6366940
Showing 1 changed file with 3 additions and 6 deletions.
9 changes: 3 additions & 6 deletions docs/nextjs.md
Original file line number Diff line number Diff line change
Expand Up @@ -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(
Expand All @@ -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;
}
);
Expand Down

0 comments on commit 6366940

Please sign in to comment.