mirror of
https://github.com/alibaba/higress.git
synced 2026-06-02 17:17:27 +08:00
optimize retry&failover logic (#1903)
This commit is contained in:
@@ -698,11 +698,6 @@ func (c *ProviderConfig) handleRequestBody(
|
||||
return types.ActionContinue, err
|
||||
}
|
||||
|
||||
// If retryOnFailure is enabled, save the transformed body to the context in case of retry
|
||||
if c.isRetryOnFailureEnabled() {
|
||||
ctx.SetContext(ctxRequestBody, body)
|
||||
}
|
||||
|
||||
if apiName == ApiNameChatCompletion {
|
||||
if c.context == nil {
|
||||
return types.ActionContinue, replaceRequestBody(body, log)
|
||||
|
||||
Reference in New Issue
Block a user