fix: sglang enable across worker
This commit is contained in:
@@ -73,7 +73,7 @@ const SealSelect: React.FC<SelectProps & SealFormItemProps> = (props) => {
|
|||||||
} else {
|
} else {
|
||||||
setIsFocus(false);
|
setIsFocus(false);
|
||||||
}
|
}
|
||||||
props.onChange?.(val, options);
|
props.onChange?.(val || null, options);
|
||||||
};
|
};
|
||||||
|
|
||||||
const handleOnFocus = (e: any) => {
|
const handleOnFocus = (e: any) => {
|
||||||
|
|||||||
@@ -1,7 +1,7 @@
|
|||||||
export default {
|
export default {
|
||||||
'apikeys.title': 'API 密钥',
|
'apikeys.title': 'API 密钥',
|
||||||
'apikeys.table.apikeys': '密钥',
|
'apikeys.table.apikeys': '密钥',
|
||||||
'apikeys.button.create': '新建 API 密钥',
|
'apikeys.button.create': '添加 API 密钥',
|
||||||
'apikeys.title.save': '保存 API 密钥',
|
'apikeys.title.save': '保存 API 密钥',
|
||||||
'apikeys.form.expiretime': '过期时间',
|
'apikeys.form.expiretime': '过期时间',
|
||||||
'apikeys.form.apikey': 'API 密钥',
|
'apikeys.form.apikey': 'API 密钥',
|
||||||
|
|||||||
@@ -1,8 +1,8 @@
|
|||||||
export default {
|
export default {
|
||||||
'users.title': '用户',
|
'users.title': '用户',
|
||||||
'users.button.create': '新建用户',
|
'users.button.create': '添加用户',
|
||||||
'users.form.edit': '编辑用户',
|
'users.form.edit': '编辑用户',
|
||||||
'users.form.create': '新建用户',
|
'users.form.create': '添加用户',
|
||||||
'users.table.username': '用户名',
|
'users.table.username': '用户名',
|
||||||
'users.table.role': '角色',
|
'users.table.role': '角色',
|
||||||
'users.table.status': '状态',
|
'users.table.status': '状态',
|
||||||
|
|||||||
@@ -243,6 +243,7 @@ const ClusterCreate = () => {
|
|||||||
const info = await queryClusterToken({ id: res.id });
|
const info = await queryClusterToken({ id: res.id });
|
||||||
setRegistrationInfo({
|
setRegistrationInfo({
|
||||||
...info,
|
...info,
|
||||||
|
image: info.container_registry,
|
||||||
cluster_id: res.id
|
cluster_id: res.id
|
||||||
});
|
});
|
||||||
return true;
|
return true;
|
||||||
|
|||||||
@@ -68,6 +68,7 @@ const AddWorker: React.FC<AddWorkerProps> = (props) => {
|
|||||||
firstLoad.current = false;
|
firstLoad.current = false;
|
||||||
setRegistrationInfo({
|
setRegistrationInfo({
|
||||||
...data,
|
...data,
|
||||||
|
image: data.container_registry,
|
||||||
cluster_id: value
|
cluster_id: value
|
||||||
});
|
});
|
||||||
} catch (error) {
|
} catch (error) {
|
||||||
|
|||||||
@@ -93,9 +93,7 @@ const AdvanceConfig = () => {
|
|||||||
></CheckboxField>
|
></CheckboxField>
|
||||||
</Form.Item>
|
</Form.Item>
|
||||||
)}
|
)}
|
||||||
{[backendOptionsMap.vllm, backendOptionsMap.ascendMindie].includes(
|
{backend !== backendOptionsMap.voxBox && (
|
||||||
backend
|
|
||||||
) && (
|
|
||||||
<Form.Item<FormData>
|
<Form.Item<FormData>
|
||||||
name="distributed_inference_across_workers"
|
name="distributed_inference_across_workers"
|
||||||
valuePropName="checked"
|
valuePropName="checked"
|
||||||
|
|||||||
@@ -20,7 +20,8 @@ const BackendFields: React.FC = () => {
|
|||||||
const { onValuesChange, backendOptions, onBackendChange } = useFormContext();
|
const { onValuesChange, backendOptions, onBackendChange } = useFormContext();
|
||||||
const backend = Form.useWatch('backend', form);
|
const backend = Form.useWatch('backend', form);
|
||||||
|
|
||||||
const handleBackendVersionOnChange = () => {
|
const handleBackendVersionOnChange = (value: any) => {
|
||||||
|
console.log('value changed:', value);
|
||||||
onValuesChange?.({}, form.getFieldsValue());
|
onValuesChange?.({}, form.getFieldsValue());
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user