From eff787a2b7a7d6dd1c145ba46f77f1758bf3163e Mon Sep 17 00:00:00 2001 From: ChenZhaoYu <790348264@qq.com> Date: Thu, 9 Mar 2023 20:16:18 +0800 Subject: [PATCH] =?UTF-8?q?chore:=20=E7=A7=BB=E9=99=A4=E4=B8=A4=E7=A7=8D?= =?UTF-8?q?=E6=8A=A5=E9=94=99?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- service/src/chatgpt/index.ts | 2 -- 1 file changed, 2 deletions(-) diff --git a/service/src/chatgpt/index.ts b/service/src/chatgpt/index.ts index c1ab471aa9..b3cb1e0df9 100644 --- a/service/src/chatgpt/index.ts +++ b/service/src/chatgpt/index.ts @@ -8,10 +8,8 @@ import { sendResponse } from '../utils' import type { ApiModel, ChatContext, ChatGPTUnofficialProxyAPIOptions, ModelConfig } from '../types' const ErrorCodeMessage: Record = { - 400: '[OpenAI] 模型的最大上下文长度是4096个令牌,请减少信息的长度。| This model\'s maximum context length is 4096 tokens.', 401: '[OpenAI] 提供错误的API密钥 | Incorrect API key provided', 403: '[OpenAI] 服务器拒绝访问,请稍后再试 | Server refused to access, please try again later', - 429: '[OpenAI] 服务器限流,请稍后再试 | Server was limited, please try again later', 502: '[OpenAI] 错误的网关 | Bad Gateway', 503: '[OpenAI] 服务器繁忙,请稍后再试 | Server is busy, please try again later', 504: '[OpenAI] 网关超时 | Gateway Time-out',