fix: enable_model_route

This commit is contained in:
jialin
2026-02-03 18:21:08 +08:00
parent 46969702a8
commit 11039a5c82
3 changed files with 4 additions and 4 deletions
+1 -1
View File
@@ -44,7 +44,7 @@ export type SourceType =
export interface FormData {
image_name?: string;
run_command?: string;
enable_model_access?: boolean;
enable_model_route?: boolean;
backend: string;
restart_on_error?: boolean;
env?: Record<string, any>;
+2 -2
View File
@@ -16,7 +16,7 @@ const AdvanceConfig = () => {
const form = Form.useFormInstance();
const EnviromentVars = Form.useWatch('env', form);
const backend = Form.useWatch('backend', form);
const modelAccessEnable = Form.useWatch('enable_model_access', form);
const modelAccessEnable = Form.useWatch('enable_model_route', form);
const {
onValuesChange,
backendOptions,
@@ -134,7 +134,7 @@ const AdvanceConfig = () => {
></CheckboxField>
</Form.Item>
<Form.Item<FormData>
name="enable_model_access"
name="enable_model_route"
valuePropName="checked"
style={{ marginBottom: 8 }}
>
+1 -1
View File
@@ -430,7 +430,7 @@ const DataForm: React.FC<DataFormProps> = forwardRef((props, ref) => {
restart_on_error: true,
distributed_inference_across_workers: true,
mode: 'throughput',
enable_model_access: true,
enable_model_route: true,
generic_proxy: false,
extended_kv_cache: {
enabled: false,