diff --git a/docs/usage/start.mdx b/docs/usage/start.mdx index f77c248e4b2d..e6f53a5d7d2f 100644 --- a/docs/usage/start.mdx +++ b/docs/usage/start.mdx @@ -1,5 +1,5 @@ --- -title: Get Start with LobeChat +title: Get started with LobeChat description: >- Explore the exciting features in LobeChat, including Vision Model, TTS & STT, Local LLMs, and Multi AI Providers. Discover more about Agent Market, Plugin diff --git a/src/app/(main)/settings/llm/components/ProviderModelList/ModelConfigModal.tsx b/src/app/(main)/settings/llm/components/ProviderModelList/ModelConfigModal.tsx index ade6f00961f8..267fc7889edb 100644 --- a/src/app/(main)/settings/llm/components/ProviderModelList/ModelConfigModal.tsx +++ b/src/app/(main)/settings/llm/components/ProviderModelList/ModelConfigModal.tsx @@ -1,5 +1,5 @@ import { Modal } from '@lobehub/ui'; -import { Checkbox, Form, Input } from 'antd'; +import { Button, Checkbox, Form, Input } from 'antd'; import isEqual from 'fast-deep-equal'; import { memo } from 'react'; import { useTranslation } from 'react-i18next'; @@ -16,6 +16,7 @@ interface ModelConfigModalProps { const ModelConfigModal = memo(({ showAzureDeployName, provider }) => { const [formInstance] = Form.useForm(); const { t } = useTranslation('setting'); + const { t: tc } = useTranslation('common'); const [open, id, editingProvider, dispatchCustomModelCards, toggleEditingCustomModelCard] = useUserStore((s) => [ @@ -38,20 +39,32 @@ const ModelConfigModal = memo(({ showAzureDeployName, pro return ( { - closeModal(); - }} - onOk={() => { - if (!editingProvider || !id) return; - const data = formInstance.getFieldsValue(); + footer={[ + , + + , + ]} + maskClosable + onCancel={closeModal} open={open} title={t('llm.customModelCards.modelConfig.modalTitle')} + zIndex={1051} // Select is 1050 >
{ @@ -66,6 +79,7 @@ const ModelConfigModal = memo(({ showAzureDeployName, pro form={formInstance} initialValues={modelCard} labelCol={{ span: 4 }} + preserve={false} style={{ marginTop: 16 }} wrapperCol={{ offset: 1, span: 18 }} >