Skip to content

Commit 907aadf

Browse files
authored
Merge pull request #60 from njhale/fix/opts
fix: correct default model env var name
2 parents 4617304 + aab4927 commit 907aadf

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/gptscript.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ function globalOptsToEnv(env: NodeJS.ProcessEnv, opts?: GlobalOpts) {
2323
env["OPENAI_BASE_URL"] = opts.BaseURL
2424
}
2525
if (opts.DefaultModel) {
26-
env["GPTSCRIPT_DEFAULT_MODEL"] = opts.DefaultModel
26+
env["GPTSCRIPT_SDKSERVER_DEFAULT_MODEL"] = opts.DefaultModel
2727
}
2828
}
2929

0 commit comments

Comments
 (0)