Revert "auth fixes" (#1229)
This commit is contained in:
parent
0bc007aeb8
commit
b6c8ea011f
1 changed files with 1 additions and 1 deletions
|
|
@ -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);
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue