Răsfoiți Sursa

not optional

Shun Miyazawa 1 an în urmă
părinte
comite
c0c9bc0032

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

@@ -36,8 +36,8 @@ type AiAssistantLearningScope = typeof AiAssistantLearningScope[keyof typeof AiA
 
 interface AiAssistant {
   name: string;
-  description?: string
-  additionalInstruction?: string
+  description: string
+  additionalInstruction: string
   vectorStoreId: string // VectorStoreId of OpenAI Specify (https://platform.openai.com/docs/api-reference/vector-stores/object)
   types: AiAssistantType[]
   owner: Ref<IUser>
@@ -64,9 +64,13 @@ const schema = new Schema<AiAssistantDocument>(
     },
     description: {
       type: String,
+      required: true,
+      default: '',
     },
     additionalInstruction: {
       type: String,
+      required: true,
+      default: '',
     },
     vectorStoreId: {
       type: String,