Update relay.go

This commit is contained in:
analogpvt 2023-05-19 22:58:16 +05:30 committed by GitHub
parent ab94a57fa1
commit 526bb54b99
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -69,7 +69,7 @@ func Relay(c *gin.Context) {
err := relayHelper(c) err := relayHelper(c)
if err != nil { if err != nil {
if err.StatusCode == http.StatusTooManyRequests { if err.StatusCode == http.StatusTooManyRequests {
err.OpenAIError.Message = "负载已满,请稍后再试,或升级账户以提升服务质量。" err.OpenAIError.Message = "The load is full, please try again later, or upgrade your account to improve service quality。"
} }
c.JSON(err.StatusCode, gin.H{ c.JSON(err.StatusCode, gin.H{
"error": err.OpenAIError, "error": err.OpenAIError,