|
|
@@ -1,5 +1,7 @@
|
|
|
import { apiv3Delete } from '~/client/util/apiv3-client';
|
|
|
|
|
|
-export const deleteThread = async(aiAssistantId: string, threadRelationId: string): Promise<void> => {
|
|
|
- await apiv3Delete(`/openai/thread/${aiAssistantId}/${threadRelationId}`);
|
|
|
+import type { IApiv3DeleteThreadParams } from '../../interfaces/thread-relation';
|
|
|
+
|
|
|
+export const deleteThread = async(params: IApiv3DeleteThreadParams): Promise<void> => {
|
|
|
+ await apiv3Delete(`/openai/thread/${params.aiAssistantId}/${params.threadRelationId}`);
|
|
|
};
|