fix: hide distributed_inference for custom backend
This commit is contained in:
@@ -70,7 +70,7 @@ const useModelsColumns = ({
|
|||||||
sorter: tableSorter(1),
|
sorter: tableSorter(1),
|
||||||
render: (text: string, record: ListItem) => (
|
render: (text: string, record: ListItem) => (
|
||||||
<span className="flex items-center">
|
<span className="flex items-center">
|
||||||
<AutoTooltip ghost style={{ maxWidth: 400 }}>
|
<AutoTooltip ghost style={{ maxWidth: 400 }} title={text}>
|
||||||
<span className="text-primary">{text}</span>
|
<span className="text-primary">{text}</span>
|
||||||
</AutoTooltip>
|
</AutoTooltip>
|
||||||
{record.is_custom && (
|
{record.is_custom && (
|
||||||
|
|||||||
@@ -35,6 +35,8 @@ const AdvanceConfig = () => {
|
|||||||
return flatBackendOptions?.find((item) => item.value === backend);
|
return flatBackendOptions?.find((item) => item.value === backend);
|
||||||
}, [backend, flatBackendOptions]);
|
}, [backend, flatBackendOptions]);
|
||||||
|
|
||||||
|
console.log('currentBackendOptions', currentBackendOptions);
|
||||||
|
|
||||||
const onSelectorChange = (field: string, allowEmpty?: boolean) => {
|
const onSelectorChange = (field: string, allowEmpty?: boolean) => {
|
||||||
const workerSelector = form.getFieldValue(field);
|
const workerSelector = form.getFieldValue(field);
|
||||||
// check if all keys have values
|
// check if all keys have values
|
||||||
@@ -103,7 +105,7 @@ const AdvanceConfig = () => {
|
|||||||
></CheckboxField>
|
></CheckboxField>
|
||||||
</Form.Item>
|
</Form.Item>
|
||||||
)}
|
)}
|
||||||
{backend !== backendOptionsMap.voxBox && (
|
{currentBackendOptions?.isBuiltIn && (
|
||||||
<Form.Item<FormData>
|
<Form.Item<FormData>
|
||||||
name="distributed_inference_across_workers"
|
name="distributed_inference_across_workers"
|
||||||
valuePropName="checked"
|
valuePropName="checked"
|
||||||
|
|||||||
Reference in New Issue
Block a user