Skip to content
Toggle navigation
P
Projects
G
Groups
S
Snippets
Help
赵月辉
/
fastgpt-migrated
This project
Loading...
Sign in
Toggle navigation
Go to a project
Project
Repository
Issues
0
Merge Requests
0
Pipelines
Wiki
Snippets
Members
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Unverified
Commit
e818cb03
authored
May 28, 2023
by
archer
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix: openai error
parent
403e1f2d
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
3 additions
and
1 deletions
+3
-1
src/service/errorCode.ts
+2
-1
src/service/events/generateVector.ts
+1
-0
No files found.
src/service/errorCode.ts
View file @
e818cb03
...
...
@@ -27,7 +27,8 @@ export const openaiError: Record<string, string> = {
export
const
openaiAccountError
:
Record
<
string
,
string
>
=
{
insufficient_quota
:
'API 余额不足'
,
invalid_api_key
:
'openai 账号异常'
,
account_deactivated
:
'账号已停用'
account_deactivated
:
'账号已停用'
,
invalid_request_error
:
'无效请求'
};
export
const
proxyError
:
Record
<
string
,
boolean
>
=
{
ECONNABORTED
:
true
,
...
...
src/service/events/generateVector.ts
View file @
e818cb03
...
...
@@ -110,6 +110,7 @@ export async function generateVector(): Promise<any> {
}
else
{
console
.
log
(
'生成向量错误:'
,
err
);
}
// message error or openai account error
if
(
err
?.
message
===
'invalid message format'
||
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment