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().
|
cli := resty.New().
|
||||||
SetTransport(&http.Transport{
|
SetTransport(&http.Transport{
|
||||||
Proxy: http.ProxyFromEnvironment,
|
Proxy: http.ProxyFromEnvironment,
|
||||||
ResponseHeaderTimeout: 90 * time.Second,
|
ResponseHeaderTimeout: 5 * time.Minute,
|
||||||
}).
|
}).
|
||||||
SetBaseURL("https://api.openai.com").
|
SetBaseURL("https://api.openai.com").
|
||||||
SetHeader("Authorization", "Bearer "+apiKey).
|
SetHeader("Authorization", "Bearer "+apiKey).
|
||||||
|
|
Loading…
Reference in New Issue