diff --git a/studio/frontend/src/components/assistant-ui/model-selector/pickers.tsx b/studio/frontend/src/components/assistant-ui/model-selector/pickers.tsx index 22a1cb7e72..6baeb9b55b 100644 --- a/studio/frontend/src/components/assistant-ui/model-selector/pickers.tsx +++ b/studio/frontend/src/components/assistant-ui/model-selector/pickers.tsx @@ -495,7 +495,7 @@ export function HubModelPicker({
{!showHfSection && (cachedGguf.length > 0 || cachedModels.length > 0) ? ( <> - Downloaded + {"\uD83E\uDDA5"} Downloaded {cachedGguf.map((c) => (
- Recommended + {"\uD83E\uDDA5"} Recommended {recommendedIds.length === 0 ? (
No default models. diff --git a/studio/frontend/src/features/auth/api.ts b/studio/frontend/src/features/auth/api.ts index e2e4932936..3bb2c9139c 100644 --- a/studio/frontend/src/features/auth/api.ts +++ b/studio/frontend/src/features/auth/api.ts @@ -84,7 +84,15 @@ export async function authFetch( headers.set("Authorization", `Bearer ${accessToken}`); } - const response = await fetch(input, { ...init, headers }); + let response: Response; + try { + response = await fetch(input, { ...init, headers }); + } catch (err) { + if (err instanceof TypeError) { + throw new Error("Studio isn't running -- please relaunch it."); + } + throw err; + } if (await isPasswordChangeRequiredResponse(response)) { void redirectToAuth(); return response;