Merge branch 'Calcium-Ion:main' into main

This commit is contained in:
GuoRuqiang authored and GitHub committed 2024-08-25 01:55:23 +08:00
commit 58c9d08ff1
7 files changed
+52 -7

No files matched your search

+3 -3
View File
@@ -121,6 +121,9 @@ func shouldRetry(c *gin.Context, openaiErr *dto.OpenAIErrorWithStatusCode, retry
if openaiErr == nil {
return false
}
if openaiErr.LocalError {
return false
}
if retryTimes <= 0 {
return false
}
@@ -151,9 +154,6 @@ func shouldRetry(c *gin.Context, openaiErr *dto.OpenAIErrorWithStatusCode, retry
// azure处理超时不重试
return false
}
if openaiErr.LocalError {
return false
}
if openaiErr.StatusCode/100 == 2 {
return false
}