Revert "fix(auth): show gateway dialog for all authentication errors" (#1230)
This commit is contained in:
parent
b6c8ea011f
commit
466478ccc4
2 changed files with 8 additions and 50 deletions
|
|
@ -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 {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue