mirror of
https://github.com/labring/FastGPT.git
synced 2025-07-23 05:12:39 +00:00
v4.6.6-fix (#676)
This commit is contained in:
@@ -18,6 +18,7 @@ export async function createOneCollection({
|
||||
rawLink,
|
||||
qaPrompt,
|
||||
hashRawText,
|
||||
rawTextLength,
|
||||
metadata = {}
|
||||
}: CreateDatasetCollectionParams & { teamId: string; tmbId: string }) {
|
||||
const { _id } = await MongoDatasetCollection.create({
|
||||
@@ -32,6 +33,7 @@ export async function createOneCollection({
|
||||
fileId,
|
||||
rawLink,
|
||||
qaPrompt,
|
||||
rawTextLength,
|
||||
hashRawText,
|
||||
metadata
|
||||
});
|
||||
|
@@ -75,6 +75,9 @@ const DatasetCollectionSchema = new Schema({
|
||||
qaPrompt: {
|
||||
type: String
|
||||
},
|
||||
rawTextLength: {
|
||||
type: Number
|
||||
},
|
||||
hashRawText: {
|
||||
type: String
|
||||
},
|
||||
|
Reference in New Issue
Block a user