From 88f63f24900524d4596f0e7093e6e34e96301f76 Mon Sep 17 00:00:00 2001 From: Steve Phillips Date: Fri, 25 Oct 2024 00:51:43 -0700 Subject: [PATCH] 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 99414bd..9b98ec9 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), }