fix: Change the implementation of retry from 307 redirect to Retry middleware

This commit is contained in:
AhhhLiu
2023-11-15 22:20:33 +08:00
parent 58bb3ab6f6
commit 42d50c06a3
6 changed files with 142 additions and 24 deletions

View File

@@ -205,6 +205,8 @@ func updateOptionMap(key string, value string) (err error) {
common.PreConsumedQuota, _ = strconv.Atoi(value)
case "RetryTimes":
common.RetryTimes, _ = strconv.Atoi(value)
case "RetryInterval":
common.RetryInterval, _ = strconv.Atoi(value)
case "ModelRatio":
err = common.UpdateModelRatioByJSONString(value)
case "GroupRatio":