Shun Miyazawa 1 год назад
Родитель
Сommit
c5c8529718
1 измененных файлов с 4 добавлено и 4 удалено
  1. 4 4
      apps/app/src/features/openai/server/models/ai-assistant.ts

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

@@ -37,10 +37,10 @@ type AiAssistantLearningScope = typeof AiAssistantLearningScope[keyof typeof AiA
 interface AiAssistant {
   name: string;
   description?: string
-  instruction?: string
+  additionalInstruction?: string
   vectorStoreId: string // VectorStoreId of OpenAI Specify (https://platform.openai.com/docs/api-reference/vector-stores/object)
   types: AiAssistantType[]
-  creator: Ref<IUser>
+  owner: Ref<IUser>
   grantedGroups?: IGrantedGroup[];
   pages: Ref<IPage>[]
   sharingScope: AiAssistantSharingScope
@@ -65,7 +65,7 @@ const schema = new Schema<AiAssistantDocument>(
     description: {
       type: String,
     },
-    instruction: {
+    additionalInstruction: {
       type: String,
     },
     vectorStoreId: {
@@ -77,7 +77,7 @@ const schema = new Schema<AiAssistantDocument>(
       enum: Object.values(AiAssistantType),
       required: true,
     }],
-    creator: {
+    owner: {
       type: Schema.Types.ObjectId,
       ref: 'User',
       required: true,