Revert "auth fixes" (#1229)

This commit is contained in:
josh 2025-09-21 13:11:23 +01:00 committed by GitHub
parent 0bc007aeb8
commit b6c8ea011f
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -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);
}