Revert "fix(auth): show gateway dialog for all authentication errors" (#1230)

This commit is contained in:
josh 2025-09-21 13:11:54 +01:00 committed by GitHub
parent b6c8ea011f
commit 466478ccc4
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
2 changed files with 8 additions and 50 deletions

View file

@ -110,9 +110,7 @@ export function Chat({
if (error instanceof ChatSDKError) {
// Check if it's a credit card error
if (
error.message?.includes('AI Gateway requires a valid credit card') ||
error.message?.includes('AI Gateway authentication failed') ||
error.message?.includes('No authentication provided')
error.message?.includes('AI Gateway requires a valid credit card')
) {
setShowCreditCardAlert(true);
} else {