chore: make timeout longer

This commit is contained in:
Yiyang Kang 2025-09-20 12:12:13 +09:00 committed by kanna5
parent 7fd8146ec5
commit fed7eb5083
No known key found for this signature in database
GPG Key ID: 06332F3965E9B0CF
1 changed files with 1 additions and 1 deletions

View File

@ -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).