From eff003d59270efc1b2c1547babfbb1c92bd916e5 Mon Sep 17 00:00:00 2001 From: Phodal Huang Date: Wed, 6 Dec 2023 20:11:39 +0800 Subject: [PATCH] fix: fix package error issue --- web/studio/app/api/images/generate/route.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/web/studio/app/api/images/generate/route.ts b/web/studio/app/api/images/generate/route.ts index 3ff0395..0f9ec20 100644 --- a/web/studio/app/api/images/generate/route.ts +++ b/web/studio/app/api/images/generate/route.ts @@ -3,8 +3,8 @@ import { VYroAI } from '@studio-b3/llmapi'; // Imagine Art // see https://platform.imagine.art/dashboard const api = new VYroAI({ - apiKey: process.env.VYRO_API_KEY, - apiType: process.env.VYRO_API_TYPE, + apiKey: process.env.VYRO_API_KEY || '', + apiType: process.env.VYRO_API_TYPE || '', }); // export const runtime = 'edge';