From 31f5dcf00c3a393383b0e5294de07ca07788ec25 Mon Sep 17 00:00:00 2001 From: YAGI <79428926+Yagi-Michael@users.noreply.github.com> Date: Thu, 9 Apr 2026 13:12:50 -0700 Subject: [PATCH] fix: allow manual model entry when provider model listing fails (#8411) --- .../models/subcomponents/SwitchModelModal.tsx | 36 ++++++++++++------- 1 file changed, 24 insertions(+), 12 deletions(-) diff --git a/ui/desktop/src/components/settings/models/subcomponents/SwitchModelModal.tsx b/ui/desktop/src/components/settings/models/subcomponents/SwitchModelModal.tsx index 275d779b..ce83f92d 100644 --- a/ui/desktop/src/components/settings/models/subcomponents/SwitchModelModal.tsx +++ b/ui/desktop/src/components/settings/models/subcomponents/SwitchModelModal.tsx @@ -841,21 +841,33 @@ export const SwitchModelModal = ({ ) : providerErrors[provider] ? ( - /* Show error message when provider failed to connect */ -
-
-
-

- {intl.formatMessage(i18n.couldNotContactProvider)} -

-
- {providerErrors[provider]} -
-
- {intl.formatMessage(i18n.checkProviderConfig)} + /* Show error with custom model input so users aren't stuck */ +
+
+
+
+

+ {intl.formatMessage(i18n.couldNotContactProvider)} +

+
+ {providerErrors[provider]} +
+
+ {intl.formatMessage(i18n.checkProviderConfig)} +
+ + setModel(event.target.value)} + value={model} + /> + {attemptedSubmit && validationErrors.model && ( +
{validationErrors.model}
+ )}
) : !isCustomModel ? (