fix: auto ban

This commit is contained in:
CaIon committed 2025-07-29 15:20:08 +08:00
1 parent e0d9a419be
commit a1caf37f5b
2 files changed
+4 -4

No files matched your search

+1 -1
View File
@@ -230,7 +230,7 @@ func GeminiHelper(c *gin.Context) (newAPIError *types.NewAPIError) {
resp, err := adaptor.DoRequest(c, relayInfo, requestBody)
if err != nil {
common.LogError(c, "Do gemini request failed: "+err.Error())
return types.NewError(err, types.ErrorCodeDoRequestFailed)
return types.NewOpenAIError(err, types.ErrorCodeDoRequestFailed, http.StatusInternalServerError)
}
statusCodeMappingStr := c.GetString("status_code_mapping")