Skip to content

Commit b629467

Browse files
committed
Update codex to use our api key
1 parent cb8ab8e commit b629467

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

evals/buffbench/runners/codex.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ export class CodexRunner implements Runner {
2525
'--full-auto',
2626
'--json',
2727
'-m',
28-
'gpt-5.1-codex-max:xhigh',
28+
'gpt-5.1-codex',
2929
prompt,
3030
]
3131

@@ -36,6 +36,7 @@ export class CodexRunner implements Runner {
3636
env: {
3737
...process.env,
3838
...this.env,
39+
CODEX_API_KEY: process.env.OPENAI_API_KEY || this.env.OPENAI_API_KEY,
3940
},
4041
// Use 'ignore' for stdin to prevent the CLI from waiting for input
4142
stdio: ['ignore', 'pipe', 'pipe'],

0 commit comments

Comments
 (0)