Skip to content

Commit

Permalink
feat: Update README.md: Print completion response
Browse files Browse the repository at this point in the history
Plus a whitespace typo fix
  • Loading branch information
Stainless Bot committed Nov 4, 2024
1 parent fc86661 commit bc1a4e6
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -63,6 +63,7 @@ func main() {
if err != nil {
panic(err.Error())
}
println(chatCompletion.Choices[0].Message.Content)
}

```
Expand All @@ -75,7 +76,7 @@ func main() {
param := openai.ChatCompletionNewParams{
Messages: openai.F([]openai.ChatCompletionMessageParamUnion{
openai.UserMessage("What kind of houseplant is easy to take care of?"),
}),
}),
Seed: openai.Int(1),
Model: openai.F(openai.ChatModelGPT4o),
}
Expand Down

0 comments on commit bc1a4e6

Please sign in to comment.