Skip to content

Commit

Permalink
fix: Enlarge the default retry timeout in ai-proxy (alibaba#1640)
Browse files Browse the repository at this point in the history
  • Loading branch information
CH3CHO authored Jan 3, 2025
1 parent 00be491 commit 187a7b5
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion plugins/wasm-go/extensions/ai-proxy/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -94,7 +94,7 @@ custom-setting会遵循如下表格,根据`name`和协议来替换对应的字
|------------------|--------|-----------------|-------|-------------|
| enabled | bool | 非必填 | false | 是否启用失败请求重试 |
| maxRetries | int | 非必填 | 1 | 最大重试次数 |
| retryTimeout | int | 非必填 | 5000 | 重试超时时间,单位毫秒 |
| retryTimeout | int | 非必填 | 30000 | 重试超时时间,单位毫秒 |

### 提供商特有配置

Expand Down
2 changes: 1 addition & 1 deletion plugins/wasm-go/extensions/ai-proxy/provider/retry.go
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ func (r *retryOnFailure) FromJson(json gjson.Result) {
}
r.retryTimeout = json.Get("retryTimeout").Int()
if r.retryTimeout == 0 {
r.retryTimeout = 5000
r.retryTimeout = 30 * 1000
}
}

Expand Down

0 comments on commit 187a7b5

Please sign in to comment.