mirror of
https://github.com/QuantumNous/new-api.git
synced 2026-05-02 11:38:24 +00:00
feat: enhance OpenRouter enterprise support with new settings and response handling
This commit is contained in:
@@ -265,6 +265,7 @@ func doRequest(c *gin.Context, req *http.Request, info *common.RelayInfo) (*http
|
||||
|
||||
resp, err := client.Do(req)
|
||||
if err != nil {
|
||||
logger.LogError(c, "do request failed: "+err.Error())
|
||||
return nil, types.NewError(err, types.ErrorCodeDoRequestFailed, types.ErrOptionWithHideErrMsg("upstream error: do request failed"))
|
||||
}
|
||||
if resp == nil {
|
||||
|
||||
Reference in New Issue
Block a user