Skip to content

Commit

Permalink
docs(readme): fix example snippet (#118)
Browse files Browse the repository at this point in the history
  • Loading branch information
shibukawa authored and stainless-app[bot] committed Nov 11, 2024
1 parent 94f87c3 commit 2af88cb
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -81,7 +81,7 @@ param := openai.ChatCompletionNewParams{
Model: openai.F(openai.ChatModelGPT4o),
}

completion, err := client.Chat.Completions.New(ctx, params)
completion, err := client.Chat.Completions.New(ctx, param)

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

0 comments on commit 2af88cb

Please sign in to comment.