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