diff --git a/frontend/src/api/knowledge-base/index.ts b/frontend/src/api/knowledge-base/index.ts index 8dd07d69..2e09ff32 100644 --- a/frontend/src/api/knowledge-base/index.ts +++ b/frontend/src/api/knowledge-base/index.ts @@ -101,6 +101,11 @@ export function getChunkByIdOnly(chunkId: string) { return get(`/api/v1/chunks/by-id/${chunkId}`); } +// Delete a single generated question from a chunk by question ID +export function deleteGeneratedQuestion(chunkId: string, questionId: string) { + return del(`/api/v1/chunks/by-id/${chunkId}/questions`, { question_id: questionId }); +} + export function listKnowledgeTags( kbId: string, params?: { page?: number; page_size?: number; keyword?: string }, diff --git a/frontend/src/components/doc-content.vue b/frontend/src/components/doc-content.vue index 2671ae51..6ecac627 100644 --- a/frontend/src/components/doc-content.vue +++ b/frontend/src/components/doc-content.vue @@ -1,8 +1,8 @@