perf: 优化系统提示消息

This commit is contained in:
Archer
2023-03-17 00:53:27 +08:00
parent 1e770088d0
commit d85b4c0945
6 changed files with 26 additions and 28 deletions

View File

@@ -2,7 +2,8 @@ export const openaiError: Record<string, string> = {
context_length_exceeded: '内容超长了,请重置对话',
Unauthorized: 'API-KEY 不合法',
rate_limit_reached: '同时访问用户过多,请稍后再试',
'Bad Request': '上下文太多了,请重开对话~'
'Bad Request': '上下文太多了,请重开对话~',
'Too Many Requests': '请求次数太多了,请慢点~'
};
export const proxyError: Record<string, boolean> = {
ECONNABORTED: true,