fix: enable_model_route
This commit is contained in:
@@ -44,7 +44,7 @@ export type SourceType =
|
|||||||
export interface FormData {
|
export interface FormData {
|
||||||
image_name?: string;
|
image_name?: string;
|
||||||
run_command?: string;
|
run_command?: string;
|
||||||
enable_model_access?: boolean;
|
enable_model_route?: boolean;
|
||||||
backend: string;
|
backend: string;
|
||||||
restart_on_error?: boolean;
|
restart_on_error?: boolean;
|
||||||
env?: Record<string, any>;
|
env?: Record<string, any>;
|
||||||
|
|||||||
@@ -16,7 +16,7 @@ const AdvanceConfig = () => {
|
|||||||
const form = Form.useFormInstance();
|
const form = Form.useFormInstance();
|
||||||
const EnviromentVars = Form.useWatch('env', form);
|
const EnviromentVars = Form.useWatch('env', form);
|
||||||
const backend = Form.useWatch('backend', form);
|
const backend = Form.useWatch('backend', form);
|
||||||
const modelAccessEnable = Form.useWatch('enable_model_access', form);
|
const modelAccessEnable = Form.useWatch('enable_model_route', form);
|
||||||
const {
|
const {
|
||||||
onValuesChange,
|
onValuesChange,
|
||||||
backendOptions,
|
backendOptions,
|
||||||
@@ -134,7 +134,7 @@ const AdvanceConfig = () => {
|
|||||||
></CheckboxField>
|
></CheckboxField>
|
||||||
</Form.Item>
|
</Form.Item>
|
||||||
<Form.Item<FormData>
|
<Form.Item<FormData>
|
||||||
name="enable_model_access"
|
name="enable_model_route"
|
||||||
valuePropName="checked"
|
valuePropName="checked"
|
||||||
style={{ marginBottom: 8 }}
|
style={{ marginBottom: 8 }}
|
||||||
>
|
>
|
||||||
|
|||||||
@@ -430,7 +430,7 @@ const DataForm: React.FC<DataFormProps> = forwardRef((props, ref) => {
|
|||||||
restart_on_error: true,
|
restart_on_error: true,
|
||||||
distributed_inference_across_workers: true,
|
distributed_inference_across_workers: true,
|
||||||
mode: 'throughput',
|
mode: 'throughput',
|
||||||
enable_model_access: true,
|
enable_model_route: true,
|
||||||
generic_proxy: false,
|
generic_proxy: false,
|
||||||
extended_kv_cache: {
|
extended_kv_cache: {
|
||||||
enabled: false,
|
enabled: false,
|
||||||
|
|||||||
Reference in New Issue
Block a user