Skip to content

Commit 2af88cb

Browse files
shibukawastainless-app[bot]
authored andcommitted
docs(readme): fix example snippet (openai#118)
1 parent 94f87c3 commit 2af88cb

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -81,7 +81,7 @@ param := openai.ChatCompletionNewParams{
8181
Model: openai.F(openai.ChatModelGPT4o),
8282
}
8383

84-
completion, err := client.Chat.Completions.New(ctx, params)
84+
completion, err := client.Chat.Completions.New(ctx, param)
8585

8686
param.Messages.Value = append(param.Messages.Value, completion.Choices[0].Message)
8787
param.Messages.Value = append(param.Messages.Value, openai.UserMessage("How big are those?"))

0 commit comments

Comments
 (0)