Skip to content
This repository was archived by the owner on Feb 10, 2025. It is now read-only.

Commit eff787a

Browse files
committed
chore: 移除两种报错
1 parent 8616526 commit eff787a

File tree

1 file changed

+0
-2
lines changed

1 file changed

+0
-2
lines changed

service/src/chatgpt/index.ts

-2
Original file line numberDiff line numberDiff line change
@@ -8,10 +8,8 @@ import { sendResponse } from '../utils'
88
import type { ApiModel, ChatContext, ChatGPTUnofficialProxyAPIOptions, ModelConfig } from '../types'
99

1010
const ErrorCodeMessage: Record<string, string> = {
11-
400: '[OpenAI] 模型的最大上下文长度是4096个令牌,请减少信息的长度。| This model\'s maximum context length is 4096 tokens.',
1211
401: '[OpenAI] 提供错误的API密钥 | Incorrect API key provided',
1312
403: '[OpenAI] 服务器拒绝访问,请稍后再试 | Server refused to access, please try again later',
14-
429: '[OpenAI] 服务器限流,请稍后再试 | Server was limited, please try again later',
1513
502: '[OpenAI] 错误的网关 | Bad Gateway',
1614
503: '[OpenAI] 服务器繁忙,请稍后再试 | Server is busy, please try again later',
1715
504: '[OpenAI] 网关超时 | Gateway Time-out',

0 commit comments

Comments
 (0)