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
04c50f71
authored
Jun 03, 2026
by
light5980
Committed by
GitHub
Jun 03, 2026
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
debug: workflow create knowledge base error (#7050)
parent
1d16842b
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
13 additions
and
5 deletions
+13
-5
packages/global/openapi/core/dataset/api.ts
+10
-4
projects/app/src/pages/api/core/dataset/createWithFiles.ts
+3
-1
No files found.
packages/global/openapi/core/dataset/api.ts
View file @
04c50f71
...
...
@@ -3,7 +3,6 @@ import { DatasetSearchModeEnum, DatasetTypeEnum } from '../../../core/dataset/co
import
{
ApiDatasetServerSchema
}
from
'../../../core/dataset/apiDataset/type'
;
import
{
ObjectIdSchema
}
from
'../../../common/type/mongo'
;
import
{
ParentIdSchema
}
from
'../../../common/parentFolder/type'
;
import
{
EmbeddingModelItemSchema
}
from
'../../../core/ai/model.schema'
;
import
{
ChunkSettingsSchema
,
DatasetItemSchema
,
...
...
@@ -132,9 +131,16 @@ export const CreateDatasetWithFilesResponseSchema = z.object({
example
:
'/imgs/dataset/avatar.png'
,
description
:
'知识库头像'
}),
vectorModel
:
EmbeddingModelItemSchema
.
meta
({
description
:
'向量模型信息'
})
vectorModel
:
z
.
object
({
model
:
z
.
string
().
meta
({
example
:
'text-embedding-3-small'
,
description
:
'向量模型名称'
})
})
.
meta
({
description
:
'向量模型选择信息'
})
});
export
type
CreateDatasetWithFilesResponse
=
z
.
infer
<
typeof
CreateDatasetWithFilesResponseSchema
>
;
...
...
projects/app/src/pages/api/core/dataset/createWithFiles.ts
View file @
04c50f71
...
...
@@ -154,7 +154,9 @@ async function handler(req: ApiRequestProps): Promise<CreateDatasetWithFilesResp
datasetId
:
dataset
.
_id
,
name
:
dataset
.
name
,
avatar
:
dataset
.
avatar
,
vectorModel
:
getEmbeddingModel
(
dataset
.
vectorModel
)
vectorModel
:
{
model
:
getEmbeddingModel
(
dataset
.
vectorModel
)?.
model
||
dataset
.
vectorModel
}
};
});
...
...
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