chore: add hint for creating backend
This commit is contained in:
@@ -44,5 +44,7 @@ export default {
|
||||
'backend.filter.source': 'Filter by source',
|
||||
'backend.add.custom': 'Custom',
|
||||
'backend.add.community': 'Community',
|
||||
'backend.community.title': 'Community Backend Marketplace'
|
||||
'backend.community.title': 'Community Backend Marketplace',
|
||||
'backend.form.add.hint':
|
||||
'To use a different version of a built-in backend (e.g., vLLM, SGLang, MindIE), please add a new version to the existing backend instead of adding a custom backend.'
|
||||
};
|
||||
|
||||
@@ -44,5 +44,7 @@ export default {
|
||||
'backend.filter.source': 'Filter by source',
|
||||
'backend.add.custom': 'Custom',
|
||||
'backend.add.community': 'Community',
|
||||
'backend.community.title': 'Community Backend Marketplace'
|
||||
'backend.community.title': 'Community Backend Marketplace',
|
||||
'backend.form.add.hint':
|
||||
'To use a different version of a built-in backend (e.g., vLLM, SGLang, MindIE), please add a new version to the existing backend instead of adding a custom backend.'
|
||||
};
|
||||
|
||||
@@ -44,7 +44,9 @@ export default {
|
||||
'backend.filter.source': 'Filter by source',
|
||||
'backend.add.custom': 'Custom',
|
||||
'backend.add.community': 'Community',
|
||||
'backend.community.title': 'Community Backend Marketplace'
|
||||
'backend.community.title': 'Community Backend Marketplace',
|
||||
'backend.form.add.hint':
|
||||
'To use a different version of a built-in backend (e.g., vLLM, SGLang, MindIE), please add a new version to the existing backend instead of adding a custom backend.'
|
||||
};
|
||||
|
||||
// ========== To-Do: Translate Keys (Remove After Translation) ==========
|
||||
@@ -54,4 +56,5 @@ export default {
|
||||
// 4. 'backend.add.custom': 'Custom',
|
||||
// 5. 'backend.add.community': 'Community',
|
||||
// 6. 'backend.community.title': 'Community Backend Marketplace'
|
||||
// 7. 'backend.form.add.hint': 'To use a different version of a built-in backend (e.g., vLLM, SGLang, MindIE), please add a new version to the existing backend instead of adding a custom backend.'
|
||||
// ========== End of To-Do List ==========
|
||||
|
||||
@@ -41,5 +41,7 @@ export default {
|
||||
'backend.filter.source': '按来源过滤',
|
||||
'backend.add.custom': '自定义',
|
||||
'backend.add.community': '社区',
|
||||
'backend.community.title': '社区后端市场'
|
||||
'backend.community.title': '社区后端市场',
|
||||
'backend.form.add.hint':
|
||||
'如果需要使用内置后端(如 vLLM、SGLang、MindIE)的其他版本,请在对应后端中添加新版本,而不是添加自定义后端。'
|
||||
};
|
||||
|
||||
@@ -1,3 +1,4 @@
|
||||
import AlertBlockInfo from '@/components/alert-info/block';
|
||||
import IconFont from '@/components/icon-font';
|
||||
import ModalFooter from '@/components/modal-footer';
|
||||
import GSDrawer from '@/components/scroller-modal/gs-drawer';
|
||||
@@ -244,11 +245,24 @@ const AddModal: React.FC<AddModalProps> = (props) => {
|
||||
}
|
||||
}}
|
||||
footer={
|
||||
<ModalFooter
|
||||
onCancel={onClose}
|
||||
onOk={onOk}
|
||||
style={ModalFooterStyle}
|
||||
></ModalFooter>
|
||||
<>
|
||||
{action === PageAction.CREATE && (
|
||||
<div style={{ marginInline: 24, paddingTop: 8 }}>
|
||||
<AlertBlockInfo
|
||||
type="warning"
|
||||
contentStyle={{ paddingInline: 0 }}
|
||||
message={intl.formatMessage({
|
||||
id: 'backend.form.add.hint'
|
||||
})}
|
||||
></AlertBlockInfo>
|
||||
</div>
|
||||
)}
|
||||
<ModalFooter
|
||||
onCancel={onClose}
|
||||
onOk={onOk}
|
||||
style={ModalFooterStyle}
|
||||
></ModalFooter>
|
||||
</>
|
||||
}
|
||||
>
|
||||
<Tabs
|
||||
|
||||
Reference in New Issue
Block a user