Skip to content

Commit 5f60478

Browse files
authored
fix: Enlarge the default retry timeout in ai-proxy (alibaba#1640)
1 parent 9332bd5 commit 5f60478

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

plugins/wasm-go/extensions/ai-proxy/README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -94,7 +94,7 @@ custom-setting会遵循如下表格,根据`name`和协议来替换对应的字
9494
|------------------|--------|-----------------|-------|-------------|
9595
| enabled | bool | 非必填 | false | 是否启用失败请求重试 |
9696
| maxRetries | int | 非必填 | 1 | 最大重试次数 |
97-
| retryTimeout | int | 非必填 | 5000 | 重试超时时间,单位毫秒 |
97+
| retryTimeout | int | 非必填 | 30000 | 重试超时时间,单位毫秒 |
9898

9999
### 提供商特有配置
100100

plugins/wasm-go/extensions/ai-proxy/provider/retry.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ func (r *retryOnFailure) FromJson(json gjson.Result) {
3030
}
3131
r.retryTimeout = json.Get("retryTimeout").Int()
3232
if r.retryTimeout == 0 {
33-
r.retryTimeout = 5000
33+
r.retryTimeout = 30 * 1000
3434
}
3535
}
3636

0 commit comments

Comments
 (0)