Skip to content

Commit

Permalink
chore: Fix Build Errors
Browse files Browse the repository at this point in the history
  • Loading branch information
VVoruganti committed Dec 23, 2024
1 parent 69e3f1a commit 4d1e9de
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions www/app/api/chat/route.ts
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,8 @@ export const dynamic = 'force-dynamic'; // always run dynamically

const OPENROUTER_API_KEY = process.env.AI_API_KEY;
const MODEL = process.env.MODEL || 'gpt-3.5-turbo';
const SENTRY_RELEASE = process.env.SENTRY_RELEASE || 'dev';
const SENTRY_ENVIRONMENT = process.env.SENTRY_ENVIRONMENT || 'local';

const openrouter = createOpenRouter({
// custom settings, e.g.
Expand Down Expand Up @@ -133,8 +135,8 @@ async function fetchOpenRouter(type: string, messages: any[], payload: any) {
metadata: {
sessionId: payload.sessionId,
userId: payload.userId,
release: process.env.SENTRY_RELEASE,
environment: process.env.SENTRY_ENVIRONMENT,
release: SENTRY_RELEASE,
environment: SENTRY_ENVIRONMENT,
tags: [type]
}
}
Expand Down

0 comments on commit 4d1e9de

Please sign in to comment.