auth fixes (#1228)

This commit is contained in:
josh 2025-09-21 12:57:38 +01:00 committed by GitHub
parent 5a3f8cac02
commit 0bc007aeb8
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'))
) {
throw titleError;
return new ChatSDKError('bad_request:activate_gateway').toResponse();
}
console.warn('Title generation failed, using default:', titleError);
}