codex icon indicating copy to clipboard operation
codex copied to clipboard

[Codex Vs Code Extension] Reasoning effort when using Custom API Key is not working/show up in ui

Open beforeyouleavethisstayandcalm opened this issue 1 year ago • 7 comments

What version of Codex is running?

codex-cli 0.25.0

Which model were you using?

gpt-5

What platform is your computer?

Microsoft Windows NT 10.0.26100.0 x64

What steps can reproduce the bug?

  1. Run Codex Extension
  2. in config.toml i set model_reasoning_effort = "high"
  3. the model thinks just as quickly over a complex task, when the reasoning effort is high it thinks for 2-3 minutes

What is the expected behavior?

No response

What do you see instead?

No response

Additional information

No response

@Kaneki-hash could you actually describe the bug?

Remedy92 avatar Aug 28 '25 16:08 Remedy92

@Remedy92 I'm using Codex Extension with my own OpenAI API key. I set model_reasoning_effort = "high" in the config.toml file, expecting the model to take 2-3 minutes thinking through complex tasks. But it doesn't work - the model still responds instantly like the reasoning effort is set to low.

It looks like when you use a custom OpenAI API key, the reasoning_effort parameter from config.toml is completely ignored. The model should be thinking longer with high reasoning effort, but instead it just gives quick responses.

@Kaneki-hash can you provide the steps to input an OpenAI API key with the extension? I'll attempt to reproduce

daniel-orr avatar Aug 29 '25 18:08 daniel-orr

It is fixed now with 0.4.0 version. Thanks.

@Kaneki-hash would you mind sharing your chatgpt.config (obviously remove your key)? I'm attempting to get my key working and not sure if I'm doing it incorrectly. Codex extension won't initialize after I updated my config.

daniel-orr avatar Aug 29 '25 19:08 daniel-orr

@Kaneki-hash would you mind sharing your chatgpt.config (obviously remove your key)? I'm attempting to get my key working and not sure if I'm doing it incorrectly. Codex extension won't initialize after I updated my config.

I didn't have a key initialization stage; the env - OPENAI_API_KEY variable is responsible for that. That is, during initialization, you will be told if there is no OpenAI key to specify it in the variables.

for v0.4.0, I have set up the config.toml but it still required login with chatgpt.

Finally worked out by setting env var for VS Code, see

https://community.openai.com/t/vscode-extension-with-api-key/1355263/5?u=milkkk_y

perfumescent avatar Sep 04 '25 17:09 perfumescent