Merge pull request #19 from songquanpeng/main

Fork Sync: Update from parent repository
This commit is contained in:
quzard 2023-06-11 11:02:54 +08:00 committed by GitHub
commit cc9d5b7117
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -108,7 +108,7 @@ func Relay(c *gin.Context) {
err := relayHelper(c, relayMode) err := relayHelper(c, relayMode)
if err != nil { if err != nil {
if err.StatusCode == http.StatusTooManyRequests { if err.StatusCode == http.StatusTooManyRequests {
err.OpenAIError.Message = "负载已满,请稍后再试,或升级账户以提升服务质量。" err.OpenAIError.Message = "当前分组负载已饱和,请稍后再试,或升级账户以提升服务质量。"
} }
c.JSON(err.StatusCode, gin.H{ c.JSON(err.StatusCode, gin.H{
"error": err.OpenAIError, "error": err.OpenAIError,