Skip to content

Commit

Permalink
Merge pull request #98 from elimisteve/patch-1
Browse files Browse the repository at this point in the history
Update README.md: Print completion response
  • Loading branch information
kwhinnery-openai authored Nov 4, 2024
2 parents fc86661 + 88f63f2 commit 8b155ae
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 8b155ae

Please sign in to comment.