Skip to content

Commit 78c07b8

Browse files
Add sentry capture exception
1 parent 7932d23 commit 78c07b8

File tree

1 file changed

+1
-0
lines changed
  • packages/web/src/app/api/(server)/chat

1 file changed

+1
-0
lines changed

packages/web/src/app/api/(server)/chat/route.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -410,6 +410,7 @@ const getAISDKLanguageModelAndOptions = async (config: LanguageModel, orgId: num
410410

411411
const errorHandler = (error: unknown) => {
412412
logger.error(error);
413+
Sentry.captureException(error);
413414

414415
if (error == null) {
415416
return 'unknown error';

0 commit comments

Comments
 (0)