perf: 加快拆分QA和生成向量;余额不足提醒

This commit is contained in:
archer
2023-04-05 20:37:37 +08:00
parent dc329041f3
commit fbbc32361b
8 changed files with 89 additions and 93 deletions

View File

@@ -6,6 +6,9 @@ export const openaiError: Record<string, string> = {
'Too Many Requests': '请求次数太多了,请慢点~',
'Bad Gateway': '网关异常,请重试'
};
export const openaiError2: Record<string, string> = {
insufficient_quota: 'API 余额不足'
};
export const proxyError: Record<string, boolean> = {
ECONNABORTED: true,
ECONNRESET: true