mirror of
https://github.com/zhengkai/orca.git
synced 2026-02-04 15:02:26 +08:00
fix: fetch timeout
This commit is contained in:
@@ -35,7 +35,7 @@ func (pr *row) fetchRemote() (ab []byte, err error) {
|
||||
req.Header.Set(`Authorization`, `Bearer `+config.OpenAIKey)
|
||||
|
||||
client := &http.Client{
|
||||
// Timeout: 30 * time.Second,
|
||||
Timeout: 20 * time.Second,
|
||||
}
|
||||
t := time.Now()
|
||||
rsp, err := client.Do(req)
|
||||
|
||||
Reference in New Issue
Block a user