Feat: Add question parameter to edit chunk modal #3873 (#3874)

### What problem does this PR solve?

Feat: Add question parameter to edit chunk modal #3873

### Type of change


- [x] New Feature (non-breaking change which adds functionality)
This commit is contained in:
balibabu
2024-12-05 13:58:33 +08:00
committed by GitHub
parent 593ffc4067
commit cfe23badb0
5 changed files with 15 additions and 0 deletions

View File

@ -99,10 +99,12 @@ export const useUpdateChunk = () => {
content,
keywords,
available_int,
question_kwd,
}: {
content: string;
keywords: string;
available_int: number;
question_kwd: string;
}) => {
const code = await createChunk({
content_with_weight: content,
@ -110,6 +112,7 @@ export const useUpdateChunk = () => {
chunk_id: chunkId,
important_kwd: keywords, // keywords
available_int,
question_kwd,
});
if (code === 0) {