Shun Miyazawa 1 год назад
Родитель
Сommit
5ed6319092

+ 1 - 0
apps/app/src/features/openai/interfaces/thread-relation.ts

@@ -6,6 +6,7 @@ export interface IThreadRelation {
   userId: Ref<IUser>
   vectorStore: Ref<IVectorStore>
   threadId: string;
+  title?: string;
   expiredAt: Date;
 }
 

+ 3 - 0
apps/app/src/features/openai/server/models/thread-relation.ts

@@ -35,6 +35,9 @@ const schema = new Schema<ThreadRelationDocument, ThreadRelationModel>({
     required: true,
     unique: true,
   },
+  title: {
+    type: String,
+  },
   expiredAt: {
     type: Date,
     default: generateExpirationDate,