Skip to content

Commit 9e5b546

Browse files
author
Aleksander Grygier
committed
fix: Secret fallback
1 parent 326a84e commit 9e5b546

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

apps/web/src/routes/api/transcribe/+server.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ import type { RequestHandler } from './$types';
44
import { env as envPrivate } from '$env/dynamic/private';
55

66
const openai = new OpenAI({
7-
apiKey: envPrivate.OPENAI_API_KEY
7+
apiKey: envPrivate.OPENAI_API_KEY || ''
88
});
99

1010
export const POST: RequestHandler = async ({ request }) => {

0 commit comments

Comments
 (0)