* Support Retrieve file content API (#347) * add timeout test for GetFileContent (#347)
This commit is contained in:
committed by
GitHub
parent
06b16a7281
commit
a243e7331f
@@ -3,7 +3,6 @@ package openai
|
||||
import (
|
||||
"bufio"
|
||||
"context"
|
||||
"net/http"
|
||||
|
||||
utils "github.com/sashabaranov/go-openai/internal"
|
||||
)
|
||||
@@ -57,7 +56,7 @@ func (c *Client) CreateChatCompletionStream(
|
||||
if err != nil {
|
||||
return
|
||||
}
|
||||
if resp.StatusCode < http.StatusOK || resp.StatusCode >= http.StatusBadRequest {
|
||||
if isFailureStatusCode(resp) {
|
||||
return nil, c.handleErrorResp(resp)
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user