Skip to content

Commit 61c9a7c

Browse files
authored
Fix opanai code example in docs (#961)
1 parent de30285 commit 61c9a7c

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

docs/integrations/apis/openai/chat.mdx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ await io.openai.chat.completions.create("chat-completion", {
2626
Creates a model response for the given chat conversation, but runs the request in the background using [io.backgroundFetch()](/sdk/io/backgroundfetch)
2727

2828
```ts example.ts
29-
await io.openai.chat.completions.create("chat-completion", {
29+
await io.openai.chat.completions.backgroundCreate("chat-completion", {
3030
model: "gpt-3.5-turbo",
3131
messages: [
3232
{

0 commit comments

Comments
 (0)