fix: do not evaluate from model files

This commit is contained in:
jialin
2025-11-12 15:10:00 +08:00
parent cbc000d35a
commit 653ada5f0f
3 changed files with 4 additions and 5 deletions
+1 -1
View File
@@ -11,7 +11,7 @@ interface ThemeType {
}
interface SegmentLineProps extends SegmentedProps {
height?: number;
theme: 'dark' | 'light';
theme?: 'dark' | 'light';
}
const darkTheme: ThemeType = {
@@ -451,15 +451,13 @@ const AddModal: FC<AddModalProps> = (props) => {
]);
if (props.deploymentType === 'modelFiles') {
clearCacheFormValues();
form.current?.form?.setFieldsValue({
...props.initialValues
});
console.log('handleOnOpen - modelFiles:', props.initialValues);
handleOnValuesChange?.({
changedValues: {},
allValues: {
...props.initialValues
},
allValues: form.current?.form?.getFieldsValue(),
source: source
});
} else {
+1
View File
@@ -437,6 +437,7 @@ const DataForm: React.FC<DataFormProps> = forwardRef((props, ref) => {
restart_on_error: true,
distributed_inference_across_workers: true,
mode: 'throughput',
generic_proxy: false,
extended_kv_cache: {
enabled: false,
chunk_size: null,