mirror of
https://github.com/csunny/DB-GPT.git
synced 2025-09-08 12:30:14 +00:00
feat(web): Support default strategy batch sync. (#1196)
This commit is contained in:
@@ -77,8 +77,8 @@ export default function Segmentation(props: IProps) {
|
||||
fileStrategies.map((item) => {
|
||||
const name = item?.chunk_parameters?.chunk_strategy;
|
||||
if (!name) {
|
||||
message.error(`Please select chunk strategy for ${item.name}.`);
|
||||
checked = false;
|
||||
// set default strategy
|
||||
item.chunk_parameters = { chunk_strategy: 'Automatic' };
|
||||
}
|
||||
const strategy = strategies.filter((item) => item.strategy === name)[0];
|
||||
const newParam: any = {
|
||||
|
Reference in New Issue
Block a user