feat: enhance OpenRouter enterprise support with new settings and response handling

This commit is contained in:
CaIon
2025-09-28 15:23:27 +08:00
parent 6659a8a569
commit 6e6a96d19f
5 changed files with 78 additions and 3 deletions

View File

@@ -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 {