Skip to content

Commit

Permalink
chore: 移除两种报错
Browse files Browse the repository at this point in the history
  • Loading branch information
Chanzhaoyu committed Mar 9, 2023
1 parent 8616526 commit eff787a
Showing 1 changed file with 0 additions and 2 deletions.
2 changes: 0 additions & 2 deletions service/src/chatgpt/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -8,10 +8,8 @@ import { sendResponse } from '../utils'
import type { ApiModel, ChatContext, ChatGPTUnofficialProxyAPIOptions, ModelConfig } from '../types'

const ErrorCodeMessage: Record<string, string> = {
400: '[OpenAI] 模型的最大上下文长度是4096个令牌,请减少信息的长度。| This model\'s maximum context length is 4096 tokens.',

This comment has been minimized.

Copy link
@wanmyj

wanmyj Mar 9, 2023

这两种报错不再valid了吗?

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',
Expand Down

0 comments on commit eff787a

Please sign in to comment.