Преглед изворни кода

Add pagePaths property to AiAssistant model for enhanced functionality

Shun Miyazawa пре 1 година
родитељ
комит
077517068f
1 измењених фајлова са 5 додато и 0 уклоњено
  1. 5 0
      apps/app/src/features/openai/server/models/ai-assistant.ts

+ 5 - 0
apps/app/src/features/openai/server/models/ai-assistant.ts

@@ -40,6 +40,7 @@ interface AiAssistant {
   name: string;
   description: string
   additionalInstruction: string
+  pagePaths: string[],
   vectorStore: Ref<VectorStore>
   types: AiAssistantType[]
   owner: Ref<IUser>
@@ -73,6 +74,10 @@ const schema = new Schema<AiAssistantDocument>(
       required: true,
       default: '',
     },
+    pagePaths: [{
+      type: String,
+      required: true,
+    }],
     vectorStore: {
       type: Schema.Types.ObjectId,
       ref: 'VectorStore',