From 4a98dff75411740d58e545c8d299d9768091deb4 Mon Sep 17 00:00:00 2001 From: Jaime Freire <5436581+jaimefreire@users.noreply.github.com> Date: Sat, 2 Dec 2023 19:31:43 +0100 Subject: [PATCH] Update --- app/api/generate-code-from-image/route.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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'