This commit is contained in:
Zheng Kai
2023-08-01 15:08:01 +08:00
parent e18c1db55e
commit 71ec1811e1
13 changed files with 110 additions and 17 deletions

View File

@@ -10,6 +10,7 @@ import (
"os"
"path"
"project/config"
"project/metrics"
"project/pb"
"project/util"
"time"
@@ -61,6 +62,8 @@ func (pr *row) fetchRemote() (ab []byte, err error) {
rsp.Body.Close()
metrics.Limit(rsp.Header)
if err == nil {
e := &pb.OpenAIError{}
json.Unmarshal(ab, e)