chore: make timeout longer
This commit is contained in:
parent
7fd8146ec5
commit
fed7eb5083
|
@ -20,7 +20,7 @@ func NewClient(apiKey string) *Client {
|
|||
cli := resty.New().
|
||||
SetTransport(&http.Transport{
|
||||
Proxy: http.ProxyFromEnvironment,
|
||||
ResponseHeaderTimeout: 90 * time.Second,
|
||||
ResponseHeaderTimeout: 5 * time.Minute,
|
||||
}).
|
||||
SetBaseURL("https://api.openai.com").
|
||||
SetHeader("Authorization", "Bearer "+apiKey).
|
||||
|
|
Loading…
Reference in New Issue