Shun Miyazawa 9 месяцев назад
Родитель
Сommit
0cb4c7b9cb

+ 2 - 2
apps/app/src/features/openai/client/components/AiAssistant/AiAssistantManagementModal/AiAssistantManagementModal.tsx

@@ -23,8 +23,8 @@ import {
   useSWRxAiAssistants,
   useAiAssistantSidebar,
   useAiAssistantManagementModal,
-  AiAssistantManagementModalPageMode
- } from '../../../stores/ai-assistant';
+  AiAssistantManagementModalPageMode,
+} from '../../../stores/ai-assistant';
 
 import { AiAssistantManagementEditInstruction } from './AiAssistantManagementEditInstruction';
 import { AiAssistantManagementEditPages } from './AiAssistantManagementEditPages';

+ 1 - 1
apps/app/src/features/openai/server/services/openai.ts

@@ -219,7 +219,7 @@ class OpenaiService implements IOpenaiService {
   async getThreadsByAiAssistantId(aiAssistantId: string, type: ThreadType = ThreadType.KNOWLEDGE): Promise<ThreadRelationDocument[]> {
     const threadRelations = await ThreadRelationModel
       .find({ aiAssistant: aiAssistantId, type })
-      .sort({ updatedAt: -1 })
+      .sort({ updatedAt: -1 });
     return threadRelations;
   }