diff --git a/app/api/generate-code-from-image/route.ts b/app/api/generate-code-from-image/route.ts index 5fed6cf..d97fbc7 100644 --- a/app/api/generate-code-from-image/route.ts +++ b/app/api/generate-code-from-image/route.ts @@ -24,7 +24,7 @@ Return first the background hexadecimals, put a ||| separator, and then all the Do not include markdown "\`\`\`" or "\`\`\`html" at the start or end.` const openai = new OpenAI({ - apiKey: process.env.OPENAI_API_TOKEN, + apiKey: process.env.OPENAI_API_KEY, }) export const runtime = 'edge'