Skip to content

Commit

Permalink
Dec 2024 maintenance (#13)
Browse files Browse the repository at this point in the history
* Updated completions-example model

* Disabled 'Echo' parameter on deprecated completions model
  • Loading branch information
Kardbord authored Dec 2, 2024
1 parent 94e84e0 commit c529469
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 5 deletions.
3 changes: 1 addition & 2 deletions completions/completions_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
Expand Down
5 changes: 2 additions & 3 deletions examples/completions/completions-example.go
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
Expand Down

0 comments on commit c529469

Please sign in to comment.