mirror of
https://github.com/infiniflow/ragflow.git
synced 2026-08-04 23:00:30 +08:00
Fix: In the model settings, setting the degree of freedom to 0 and then saving caused the DeepSeek model call to fail. (#17725)
This commit is contained in:
@@ -1,6 +1,6 @@
|
||||
import { variableEnabledFieldMap } from '@/constants/chat';
|
||||
import { TFunction } from 'i18next';
|
||||
import { camelCase } from 'lodash';
|
||||
import { camelCase, isNil } from 'lodash';
|
||||
import omit from 'lodash/omit';
|
||||
|
||||
// chat model setting and generate operator
|
||||
@@ -55,11 +55,13 @@ export function setLLMSettingEnabledValues(
|
||||
pre[field] =
|
||||
initialLlmSetting === undefined
|
||||
? false
|
||||
: !!initialLlmSetting[
|
||||
variableEnabledFieldMap[
|
||||
field as keyof typeof variableEnabledFieldMap
|
||||
]
|
||||
];
|
||||
: !isNil(
|
||||
initialLlmSetting[
|
||||
variableEnabledFieldMap[
|
||||
field as keyof typeof variableEnabledFieldMap
|
||||
]
|
||||
],
|
||||
);
|
||||
return pre;
|
||||
}, {});
|
||||
return values;
|
||||
|
||||
Reference in New Issue
Block a user