From 4c05b2627cf435dddacdcbab6386acd70ad57e79 Mon Sep 17 00:00:00 2001 From: thucpn <thucsh2@gmail.com> Date: Mon, 25 Dec 2023 10:03:09 +0700 Subject: [PATCH] fix: use model env for all framework --- templates/index.ts | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/templates/index.ts b/templates/index.ts index 50e6bf82..2757f002 100644 --- a/templates/index.ts +++ b/templates/index.ts @@ -30,11 +30,9 @@ const createEnvLocalFile = async ( let content = ""; const model = opts?.model || "gpt-3.5-turbo"; - if (opts?.framework === "express") { - content += `MODEL=${model}\n`; - } + content += `MODEL=${model}\n`; 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"); -- GitLab