From 2a90a0513226ef729c22266bb3277d49ad3a5e19 Mon Sep 17 00:00:00 2001 From: nyatoru Date: Tue, 24 Feb 2026 22:08:20 +0700 Subject: [PATCH] feat: extract shared auth utility and fix custom provider model resolution --- src/app/(dashboard)/dashboard/providers/[id]/page.tsx | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/app/(dashboard)/dashboard/providers/[id]/page.tsx b/src/app/(dashboard)/dashboard/providers/[id]/page.tsx index 3e56f81d1f..80b6794c46 100644 --- a/src/app/(dashboard)/dashboard/providers/[id]/page.tsx +++ b/src/app/(dashboard)/dashboard/providers/[id]/page.tsx @@ -1511,7 +1511,7 @@ function CompatibleModelsSection({ }); if (!customModelRes.ok) { - let errorData = {}; + let errorData: { error?: { message?: string } } = {}; try { errorData = await customModelRes.json(); } catch (jsonError) { @@ -1519,7 +1519,6 @@ function CompatibleModelsSection({ } throw new Error(errorData.error?.message || "Failed to save custom model"); } - } // Only create alias after customModel is saved successfully await onSetAlias(modelId, resolvedAlias, providerStorageAlias);