Skip to content

Commit 8b155ae

Browse files
Merge pull request openai#98 from elimisteve/patch-1
Update README.md: Print completion response
2 parents fc86661 + 88f63f2 commit 8b155ae

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

README.md

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -63,6 +63,7 @@ func main() {
6363
if err != nil {
6464
panic(err.Error())
6565
}
66+
println(chatCompletion.Choices[0].Message.Content)
6667
}
6768

6869
```
@@ -75,7 +76,7 @@ func main() {
7576
param := openai.ChatCompletionNewParams{
7677
Messages: openai.F([]openai.ChatCompletionMessageParamUnion{
7778
openai.UserMessage("What kind of houseplant is easy to take care of?"),
78-
}),
79+
}),
7980
Seed: openai.Int(1),
8081
Model: openai.F(openai.ChatModelGPT4o),
8182
}

0 commit comments

Comments
 (0)