fix: enable_model_route
This commit is contained in:
@@ -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>;
|
||||
|
||||
@@ -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 }}
|
||||
>
|
||||
|
||||
@@ -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,
|
||||
|
||||
Reference in New Issue
Block a user