|
|
@@ -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);
|