Skip to content
Snippets Groups Projects
Commit 4c05b262 authored by thucpn's avatar thucpn Committed by Marcus Schiesser
Browse files

fix: use model env for all framework

parent bae07b5c
No related branches found
No related tags found
No related merge requests found
...@@ -30,11 +30,9 @@ const createEnvLocalFile = async ( ...@@ -30,11 +30,9 @@ const createEnvLocalFile = async (
let content = ""; let content = "";
const model = opts?.model || "gpt-3.5-turbo"; const model = opts?.model || "gpt-3.5-turbo";
if (opts?.framework === "express") { content += `MODEL=${model}\n`;
content += `MODEL=${model}\n`;
}
if (opts?.framework === "nextjs") { if (opts?.framework === "nextjs") {
content += `MODEL=${model}\nNEXT_PUBLIC_MODEL=${model}\n`; content += `NEXT_PUBLIC_MODEL=${model}\n`;
} }
console.log("\nUsing OpenAI model: ", model, "\n"); console.log("\nUsing OpenAI model: ", model, "\n");
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment