Skip to content
This repository was archived by the owner on May 22, 2024. It is now read-only.

Commit 0ca45ea

Browse files
committed
docs(openai): update example to use gpt-4o
1 parent 46fa1d5 commit 0ca45ea

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

plugins/openai/README.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -22,13 +22,13 @@ pnpm add @genkit-ai/core @genkit-ai/ai
2222
yarn add @genkit-ai/core @genkit-ai/ai
2323
```
2424

25-
## Example GPT-4 Turbo flow
25+
## Example GPT-4o flow
2626

2727
```ts
2828
import { generate } from '@genkit-ai/ai';
2929
import { configureGenkit } from '@genkit-ai/core';
3030
import { defineFlow, startFlowsServer } from '@genkit-ai/flow';
31-
import { openAI, gpt4Turbo } from 'genkitx-openai';
31+
import { openAI, gpt4o } from 'genkitx-openai';
3232
import * as z from 'zod';
3333

3434
configureGenkit({
@@ -49,7 +49,7 @@ export const menuSuggestionFlow = defineFlow(
4949
async (subject, streamingCallback) => {
5050
const llmResponse = await generate({
5151
prompt: `Suggest an item for the menu of a ${subject} themed restaurant`,
52-
model: gpt4Turbo,
52+
model: gpt4o,
5353
streamingCallback: ({ content }) => {
5454
streamingCallback?.(content[0]?.text ?? '');
5555
},

0 commit comments

Comments
 (0)