Fix: parent child config (#14199)

### What problem does this PR solve?

Correctly set and display parent-child config in parser_config, and
allow to pass `tenant_id` in PATCH `/api/v1/chats`.

### Type of change

- [x] Bug Fix (non-breaking change which fixes an issue)
This commit is contained in:
Lynn
2026-04-17 23:02:42 +08:00
committed by GitHub
parent 09622c6353
commit c3387cd5b8
3 changed files with 15 additions and 18 deletions

View File

@@ -322,15 +322,12 @@ export const useUpdateKnowledge = (shouldFetchList = false) => {
filename_embd_weight,
task_page_size,
pages,
parent_child:
children_delimiter !== undefined ||
use_parent_child !== undefined ||
enable_children !== undefined
? {
children_delimiter,
use_parent_child: use_parent_child ?? enable_children,
}
: undefined,
parent_child: enable_children
? {
children_delimiter,
use_parent_child: use_parent_child ?? enable_children,
}
: undefined,
ext: { ...ext, ...parserExt },
};
};