From c52946905b82e698eba73bece6b7752bbfcf4cd1 Mon Sep 17 00:00:00 2001 From: Tanner Kvarfordt Date: Sun, 1 Dec 2024 20:45:47 -0800 Subject: [PATCH] Dec 2024 maintenance (#13) * Updated completions-example model * Disabled 'Echo' parameter on deprecated completions model --- completions/completions_test.go | 3 +-- examples/completions/completions-example.go | 5 ++--- 2 files changed, 3 insertions(+), 5 deletions(-) diff --git a/completions/completions_test.go b/completions/completions_test.go index 3e6612a..73e0900 100644 --- a/completions/completions_test.go +++ b/completions/completions_test.go @@ -21,10 +21,9 @@ func TestCompletions(t *testing.T) { Model: "gpt-3.5-turbo-instruct", Prompt: []string{"So long, and thanks for all the"}, MaxTokens: 5, - Echo: true, + Echo: false, PresencePenalty: 0.0, FrequencyPenalty: 0.0, - BestOf: nil, User: "https://github.com/Kardbord/gopenai", }, nil) if err != nil { diff --git a/examples/completions/completions-example.go b/examples/completions/completions-example.go index cd338ce..331d148 100644 --- a/examples/completions/completions-example.go +++ b/examples/completions/completions-example.go @@ -19,13 +19,12 @@ func init() { func main() { prompt := "So long, and thanks for all the" resp, _, err := completions.MakeModeratedRequest(&completions.Request{ - Model: "text-ada-001", + Model: "gpt-3.5-turbo-instruct", Prompt: []string{prompt}, MaxTokens: 5, - Echo: true, + Echo: false, PresencePenalty: 0.0, FrequencyPenalty: 0.0, - BestOf: nil, User: "https://github.com/Kardbord/gopenai", }, nil) if err != nil {