fix(relay): fix Anthropic-compatible compatibility for GLM (avoid chunked encoding) (#5307)

This commit is contained in:
Chen011214
2026-06-05 11:31:20 +08:00
committed by GitHub
parent 4a188deeaa
commit 83068d115e
+1
View File
@@ -155,6 +155,7 @@ func ClaudeHelper(c *gin.Context, info *relaycommon.RelayInfo) (newAPIError *typ
if err != nil {
return types.NewErrorWithStatusCode(err, types.ErrorCodeReadRequestBodyFailed, http.StatusBadRequest, types.ErrOptionWithSkipRetry())
}
info.UpstreamRequestBodySize = storage.Size()
requestBody = common.ReaderOnly(storage)
} else {
convertedRequest, err := adaptor.ConvertClaudeRequest(c, info, request)