Shun Miyazawa 1 rok temu
rodzic
commit
4fb5e78dda

+ 1 - 1
apps/app/src/features/openai/client/stores/thread.tsx

@@ -6,7 +6,7 @@ import { apiv3Get } from '~/client/util/apiv3-client';
 
 import type { IThreadRelationHasId } from '../../interfaces/thread-relation';
 
-const getKey = (aiAssistantId: string) => [`openai/threads/${aiAssistantId}`];
+const getKey = (aiAssistantId: string) => [`/openai/threads/${aiAssistantId}`];
 
 export const useSWRxThreads = (aiAssistantId: string): SWRResponse<IThreadRelationHasId[], Error> => {
   const key = getKey(aiAssistantId);