diff --git a/components/i/action/Thread.vue b/components/i/action/Thread.vue index 6b84b0b5af3f2f3945b84b45a6a599951bed3503..d7d731f6170c8caae7ad10fd7ff559c42635c158 100644 --- a/components/i/action/Thread.vue +++ b/components/i/action/Thread.vue @@ -9,9 +9,11 @@ \ No newline at end of file diff --git a/composables/useCollectionRequest.js b/composables/useCollectionRequest.js index 4293e8d91e776b8afa62553decdefde22e8fa95a..1ce1bea8d88202ff181673ba48ffc9516d3118f2 100644 --- a/composables/useCollectionRequest.js +++ b/composables/useCollectionRequest.js @@ -54,12 +54,21 @@ export default () => { const {data, error} = await useRequest(`/v1/collection/item/check/${c_id}`) return { data, error } } + + const deleteThread = async (ids) => { + const {data, error} = await useRequest('/v1/chat/completion/remove', { + method: 'post', + body: ids + }) + return { data, error } + } return { setOrUpdateCollection, deleteCollection, saveCollection, findCollection, deleteCollectionRecord, - findRecordCollection + findRecordCollection, + deleteThread } } \ No newline at end of file