Revert "refactor: replace DeepCopy with Copy for request handling consistency"

This reverts commit c21219fcff.
This commit is contained in:
CaIon
2025-08-28 15:11:55 +08:00
parent c21219fcff
commit f7c4eda0f3
12 changed files with 50 additions and 58 deletions
+1 -1
View File
@@ -24,7 +24,7 @@ func RerankHelper(c *gin.Context, info *relaycommon.RelayInfo) (newAPIError *typ
return types.NewErrorWithStatusCode(fmt.Errorf("invalid request type, expected dto.RerankRequest, got %T", info.Request), types.ErrorCodeInvalidRequest, http.StatusBadRequest, types.ErrOptionWithSkipRetry())
}
request, err := common.Copy(rerankReq, false)
request, err := common.DeepCopy(rerankReq)
if err != nil {
return types.NewError(fmt.Errorf("failed to copy request to ImageRequest: %w", err), types.ErrorCodeInvalidRequest, types.ErrOptionWithSkipRetry())
}