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

fix: use model env for all framework

parent e48a621d
Branches
Tags
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.
Please register or to comment