From b6c8ea011f7ace003e34c4541b59d44e66c68597 Mon Sep 17 00:00:00 2001 From: josh <144584931+dancer@users.noreply.github.com> Date: Sun, 21 Sep 2025 13:11:23 +0100 Subject: [PATCH] Revert "auth fixes" (#1229) --- app/(chat)/api/chat/route.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/(chat)/api/chat/route.ts b/app/(chat)/api/chat/route.ts index 98da4a1..63827cb 100644 --- a/app/(chat)/api/chat/route.ts +++ b/app/(chat)/api/chat/route.ts @@ -140,7 +140,7 @@ export async function POST(request: Request) { titleError.message?.includes('No authentication provided') || titleError.message?.includes('AI Gateway requires a valid credit card')) ) { - return new ChatSDKError('bad_request:activate_gateway').toResponse(); + throw titleError; } console.warn('Title generation failed, using default:', titleError); }