mirror of
https://github.com/infiniflow/ragflow.git
synced 2025-12-08 20:42:30 +08:00
Feat: Fixed the issue where the parameters could not be set after switching the large model parameter template. #8282 (#8283)
### What problem does this PR solve? Feat: Fixed the issue where the parameters could not be set after switching the large model parameter template. #8282 ### Type of change - [x] New Feature (non-breaking change which adds functionality)
This commit is contained in:
@ -73,3 +73,14 @@ const ShowImageFields = ['image', 'table'];
|
||||
export function showImage(filed?: string) {
|
||||
return ShowImageFields.some((x) => x === filed);
|
||||
}
|
||||
|
||||
export function setChatVariableEnabledFieldValuePage() {
|
||||
const variableCheckBoxFieldMap = Object.values(
|
||||
ChatVariableEnabledField,
|
||||
).reduce<Record<string, boolean>>((pre, cur) => {
|
||||
pre[cur] = cur !== ChatVariableEnabledField.MaxTokensEnabled;
|
||||
return pre;
|
||||
}, {});
|
||||
|
||||
return variableCheckBoxFieldMap;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user