fix: hide distributed_inference for custom backend

This commit is contained in:
jialin
2026-04-29 20:51:48 +08:00
committed by jialin
parent bb93ad37a1
commit 9914db6b96
2 changed files with 4 additions and 2 deletions
@@ -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 && (
+3 -1
View File
@@ -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"