fix(auth): show gateway dialog for all authentication errors (#1227)
This commit is contained in:
parent
1aff7d9868
commit
5a3f8cac02
2 changed files with 50 additions and 8 deletions
|
|
@ -110,7 +110,9 @@ 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 requires a valid credit card') ||
|
||||
error.message?.includes('AI Gateway authentication failed') ||
|
||||
error.message?.includes('No authentication provided')
|
||||
) {
|
||||
setShowCreditCardAlert(true);
|
||||
} else {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue