Skip to content

Commit 5b57388

Browse files
committed
test: use GPT3Dot5TurboInstruct to test CreateCompletion function
1 parent 1ea101d commit 5b57388

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

client_test.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -475,11 +475,11 @@ func TestClientReturnsRequestBuilderErrorsAddition(t *testing.T) {
475475
client := NewClientWithConfig(config)
476476
client.requestBuilder = &failingRequestBuilder{}
477477
ctx := context.Background()
478-
_, err := client.CreateCompletion(ctx, CompletionRequest{Model: GPT3TextDavinci003, Prompt: 1})
478+
_, err := client.CreateCompletion(ctx, CompletionRequest{Model: GPT3Dot5TurboInstruct, Prompt: 1})
479479
if !errors.Is(err, ErrCompletionRequestPromptTypeNotSupported) {
480480
t.Fatalf("Did not return error when request builder failed: %v", err)
481481
}
482-
_, err = client.CreateCompletionStream(ctx, CompletionRequest{Model: GPT3TextDavinci003, Prompt: 1})
482+
_, err = client.CreateCompletionStream(ctx, CompletionRequest{Model: GPT3Dot5TurboInstruct, Prompt: 1})
483483
if !errors.Is(err, ErrCompletionRequestPromptTypeNotSupported) {
484484
t.Fatalf("Did not return error when request builder failed: %v", err)
485485
}

0 commit comments

Comments
 (0)