perf: error response

This commit is contained in:
archer
2023-04-24 18:08:49 +08:00
parent e60c36b423
commit dd2d93c953
3 changed files with 3 additions and 27 deletions

View File

@@ -2,8 +2,7 @@ export const openaiError: Record<string, string> = {
context_length_exceeded: '内容超长了,请重置对话',
Unauthorized: 'API-KEY 不合法',
rate_limit_reached: 'API被限制请稍后再试',
'Bad Request': 'Bad Request~ 可能内容太多了',
'Too Many Requests': '请求次数太多了,请慢点~',
'Bad Request': 'Bad Request~ openai 异常',
'Bad Gateway': '网关异常,请重试'
};
export const openaiError2: Record<string, string> = {