refactor: update error handling in ClaudeHelper and GeminiHelper

This commit is contained in:
CaIon
2025-06-20 14:53:27 +08:00
parent 5d8a0952b4
commit b087b20bac
2 changed files with 2 additions and 2 deletions

View File

@@ -126,7 +126,7 @@ func ClaudeHelper(c *gin.Context) (claudeError *dto.ClaudeErrorWithStatusCode) {
var httpResp *http.Response
resp, err := adaptor.DoRequest(c, relayInfo, requestBody)
if err != nil {
return service.ClaudeErrorWrapperLocal(err, "do_request_failed", http.StatusInternalServerError)
return service.ClaudeErrorWrapper(err, "do_request_failed", http.StatusInternalServerError)
}
if resp != nil {