|
@@ -37,7 +37,7 @@ interface AiAssistant {
|
|
|
description?: string
|
|
description?: string
|
|
|
instruction?: string
|
|
instruction?: string
|
|
|
vectorStoreId: string // VectorStoreId of OpenAI Specify (https://platform.openai.com/docs/api-reference/vector-stores/object)
|
|
vectorStoreId: string // VectorStoreId of OpenAI Specify (https://platform.openai.com/docs/api-reference/vector-stores/object)
|
|
|
- type: AiAssistantType[]
|
|
|
|
|
|
|
+ types: AiAssistantType[]
|
|
|
pages: mongoose.Types.ObjectId[]
|
|
pages: mongoose.Types.ObjectId[]
|
|
|
sharingScope: AiAssistantSharingScope
|
|
sharingScope: AiAssistantSharingScope
|
|
|
learningScope: AiAssistantLearningScope
|
|
learningScope: AiAssistantLearningScope
|
|
@@ -67,7 +67,7 @@ const schema = new Schema<AiAssistantDocument>(
|
|
|
type: String,
|
|
type: String,
|
|
|
required: true,
|
|
required: true,
|
|
|
},
|
|
},
|
|
|
- type: [{
|
|
|
|
|
|
|
+ types: [{
|
|
|
type: String,
|
|
type: String,
|
|
|
enum: Object.values(AiAssistantType),
|
|
enum: Object.values(AiAssistantType),
|
|
|
required: true,
|
|
required: true,
|