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"},