From bc1a4e6b7a2633c902f61de645035c794225e14d Mon Sep 17 00:00:00 2001 From: Stainless Bot Date: Mon, 4 Nov 2024 16:26:06 +0000 Subject: [PATCH] feat: Update README.md: Print completion response Plus a whitespace typo fix --- README.md | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/README.md b/README.md index 9b8fcee..f834d14 100644 --- a/README.md +++ b/README.md @@ -63,6 +63,7 @@ func main() { if err != nil { panic(err.Error()) } + println(chatCompletion.Choices[0].Message.Content) } ``` @@ -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), }