fix: fetch timeout

This commit is contained in:
Zheng Kai
2023-09-06 12:06:23 +08:00
parent 093413939e
commit 3c76c9f1b2

View File

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