diff --git a/ui/desktop/src/components/settings_v2/models/subcomponents/AddModelModal.tsx b/ui/desktop/src/components/settings_v2/models/subcomponents/AddModelModal.tsx index 42854c80..3dac3141 100644 --- a/ui/desktop/src/components/settings_v2/models/subcomponents/AddModelModal.tsx +++ b/ui/desktop/src/components/settings_v2/models/subcomponents/AddModelModal.tsx @@ -10,7 +10,7 @@ import { useConfig } from '../../../ConfigContext'; import { changeModel as switchModel } from '../index'; import type { View } from '../../../../App'; -const ModalButtons = ({ onSubmit, onCancel }) => ( +const ModalButtons = ({ onSubmit, onCancel, isValid, validationErrors }) => (
@@ -181,6 +242,9 @@ export const AddModelModal = ({ onClose, setView }: AddModelModalProps) => { onChange={(event) => setModel(event.target.value)} value={model} /> + {attemptedSubmit && validationErrors.model && ( +
{validationErrors.model}
+ )}
)}