Skip to content

Commit

Permalink
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
elimisteve authored Oct 25, 2024
1 parent 9336819 commit d0b5530
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(completion.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 d0b5530

Please sign in to comment.