Skip to content

Commit 7f77948

Browse files
dprevoznikclaude
andcommitted
Require MODEL_API_KEY without OPENAI_API_KEY fallback
Read the model key only from MODEL_API_KEY. Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
1 parent 8a88a02 commit 7f77948

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

  • pkg/templates/typescript/stagehand

‎pkg/templates/typescript/stagehand/index.ts‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -20,10 +20,10 @@ interface TeamSizeOutput {
2020
// See https://www.kernel.sh/docs/apps/deploy#environment-variables
2121
// Defaults to OpenAI. Override MODEL to use another provider (e.g. google/gemini-2.5-flash).
2222
const MODEL = (process.env.MODEL ?? "openai/gpt-4.1") as ModelName;
23-
const MODEL_API_KEY = process.env.MODEL_API_KEY ?? process.env.OPENAI_API_KEY;
23+
const MODEL_API_KEY = process.env.MODEL_API_KEY;
2424

2525
if (!MODEL_API_KEY) {
26-
throw new Error("MODEL_API_KEY (or OPENAI_API_KEY) is not set");
26+
throw new Error("MODEL_API_KEY is not set");
2727
}
2828

2929
app.action<CompanyInput, TeamSizeOutput>(

0 commit comments

Comments
 (0)