fix: hunyuan

This commit is contained in:
CalciumIon committed 2024-07-08 23:42:16 +08:00
1 parent 976e1f0921
commit efd18779c2
6 files changed
+56 -44

No files matched your search

+1
View File
@@ -38,6 +38,7 @@ func RelayErrorHandler(resp *http.Response) (OpenAIErrorWithStatusCode *dto.Open
var textResponse dto.TextResponseWithError
err = json.Unmarshal(responseBody, &textResponse)
if err != nil {
OpenAIErrorWithStatusCode.Error.Message = fmt.Sprintf("error unmarshalling response body: %s", responseBody)
return
}
OpenAIErrorWithStatusCode.Error = textResponse.Error