From f89133c6e055b7293799e14f342da620583e8a5c Mon Sep 17 00:00:00 2001 From: sashabaranov <677093+sashabaranov@users.noreply.github.com> Date: Sat, 4 Mar 2023 15:19:54 +0400 Subject: [PATCH] Update README.md --- README.md | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/README.md b/README.md index 5bf89d8..030388f 100644 --- a/README.md +++ b/README.md @@ -28,11 +28,9 @@ import ( ) func main() { - c := gogpt.NewClient("your token") - ctx := context.Background() - + client := gogpt.NewClient("your token") resp, err := c.CreateChatCompletion( - ctx, + context.Background(), gogpt.ChatCompletionRequest{ Model: gogpt.GPT3Dot5Turbo, Messages: []gogpt.ChatCompletionMessage{