diff --git a/gui/src/pages/gui/StreamError.tsx b/gui/src/pages/gui/StreamError.tsx index 38da7df22..867cd044b 100644 --- a/gui/src/pages/gui/StreamError.tsx +++ b/gui/src/pages/gui/StreamError.tsx @@ -26,6 +26,12 @@ const StreamErrorDialog = ({ error }: StreamErrorProps) => { ); const { session, refreshProfiles } = useAuth(); + const handleRefreshProfiles = () => { + refreshProfiles(); + dispatch(setShowDialog(false)); + dispatch(setDialogMessage(undefined)); + }; + // Collect model information to display useful error info let modelTitle = "Chat model"; let providerName = "the model provider"; @@ -151,9 +157,9 @@ const StreamErrorDialog = ({ error }: StreamErrorProps) => { session && selectedProfile && !isLocalProfile(selectedProfile) && ( -
- {`If your hub secret values may have changed, refresh your profiles`} - +
+ {`If your hub secret values may have changed, refresh your assistants`} + Refresh profile secrets