From 7b41f30a0a0e5c2af2da0443a31df018a3ab0fae Mon Sep 17 00:00:00 2001 From: Jeff Carr Date: Sat, 3 Dec 2022 20:53:43 -0600 Subject: [PATCH] notes --- example-gpt-3/main.go | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/example-gpt-3/main.go b/example-gpt-3/main.go index bf97f37..f9c409a 100644 --- a/example-gpt-3/main.go +++ b/example-gpt-3/main.go @@ -1,5 +1,7 @@ package main +// https://chat.openai.com/chat + import ( "context" "fmt" @@ -27,6 +29,12 @@ func main() { log.Println("engines =", eng) spew.Dump(eng) + // shows how much things cost so far: + // https://beta.openai.com/account/usage + + // shows the options you can pass in CompletionRequest: + // https://pkg.go.dev/github.com/PullRequestInc/go-gpt3#CompletionRequest + // resp, err := client.Completion(ctx, gpt3.CompletionRequest{ resp, err := client.CompletionWithEngine(ctx, "text-davinci-003", gpt3.CompletionRequest{ Prompt: []string{"Write a 3000 word essay about DiVinci"},