fix: sglang enable across worker

This commit is contained in:
jialin
2025-11-20 15:59:05 +08:00
parent ebff5695ff
commit ea39a45f31
7 changed files with 9 additions and 8 deletions
+1 -1
View File
@@ -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 -1
View File
@@ -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 密钥',
+2 -2
View File
@@ -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) {
+1 -3
View File
@@ -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"
+2 -1
View File
@@ -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());
}; };