perf: md引入;docker-compose;

This commit is contained in:
archer
2023-04-09 22:56:08 +08:00
parent 5e4c4dd79b
commit 99e5fbd0f5
17 changed files with 185 additions and 149 deletions

View File

@@ -25,11 +25,8 @@ export const jsonRes = <T = any>(
msg = error;
} else if (proxyError[error?.code]) {
msg = '服务器代理出错';
} else if (error?.response?.data?.error) {
msg =
openaiError2[error?.response?.data?.error?.type] ||
error?.response?.data?.error?.message ||
'openai 错误';
} else if (openaiError2[error?.response?.data?.error?.type]) {
msg = openaiError2[error?.response?.data?.error?.type];
} else if (openaiError[error?.response?.statusText]) {
msg = openaiError[error.response.statusText];
}