We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent d2e17a0 commit 2bfbc84Copy full SHA for 2bfbc84
core/relay/adaptor/ali/error.go
@@ -2,6 +2,7 @@ package ali
2
3
import (
4
"net/http"
5
+ "strings"
6
7
"github.com/labring/aiproxy/core/relay/adaptor"
8
"github.com/labring/aiproxy/core/relay/adaptor/openai"
@@ -23,5 +24,9 @@ func ErrorHanlder(resp *http.Response) adaptor.Error {
23
24
openAIError.Type = relaymodel.ErrorTypeUpstream
25
}
26
27
+ if strings.Contains(openAIError.Message, "object is not iterable") {
28
+ statusCode = http.StatusBadRequest
29
+ }
30
+
31
return relaymodel.NewOpenAIError(statusCode, openAIError)
32
0 commit comments