From f86b9139f326d45e23bcfccd04f422827d41743f Mon Sep 17 00:00:00 2001 From: analogpvt <72215823+analogpvt@users.noreply.github.com> Date: Fri, 19 May 2023 23:17:05 +0530 Subject: [PATCH] Update distributor.go --- middleware/distributor.go | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/middleware/distributor.go b/middleware/distributor.go index 357849e7..bc7ed41c 100644 --- a/middleware/distributor.go +++ b/middleware/distributor.go @@ -18,7 +18,7 @@ func Distribute() func(c *gin.Context) { if err != nil { c.JSON(http.StatusOK, gin.H{ "error": gin.H{ - "message": "无效的渠道 ID", + "message": "Invalid channel. ID", "type": "one_api_error", }, }) @@ -29,7 +29,7 @@ func Distribute() func(c *gin.Context) { if err != nil { c.JSON(200, gin.H{ "error": gin.H{ - "message": "无效的渠道 ID", + "message": "Invalid channel. ID", "type": "one_api_error", }, }) @@ -39,7 +39,7 @@ func Distribute() func(c *gin.Context) { if channel.Status != common.ChannelStatusEnabled { c.JSON(200, gin.H{ "error": gin.H{ - "message": "该渠道已被禁用", + "message": "This channel has been disabled.", "type": "one_api_error", }, }) @@ -53,7 +53,7 @@ func Distribute() func(c *gin.Context) { if err != nil { c.JSON(200, gin.H{ "error": gin.H{ - "message": "无可用渠道", + "message": "No available channels.", "type": "one_api_error", }, })