codex --model accepts any model name and codex will report it is using it

Resolved 💬 1 comment Opened May 29, 2025 by 101glover Closed Aug 7, 2025

What version of Codex is running?

v0.1.2505172129

Which model were you using?

I don't know and that is the problem

What platform is your computer?

Linux 6.8.0-45-generic x86_64 x86_64

What steps can reproduce the bug?

I should say that I am using azure so maybe that is my issue.

$ codex --provider AZURE --model crazy-obviously-fake-model-name
╭──────────────────────────────────────────────────────────────╮
│ ● OpenAI Codex (research preview) v0.1.2505172129            │
╰──────────────────────────────────────────────────────────────╯
╭──────────────────────────────────────────────────────────────╮
│ localhost session: 3eef78032e3d4f0cb1d3005873102161          │
│ ↳ workdir: ~/codex                                           │
│ ↳ model: crazy-obviously-fake-model-name                     │
│ ↳ provider: AZURE                                            │
│ ↳ approval: suggest                                          │
╰──────────────────────────────────────────────────────────────╯

run /model

╭──────────────────────────────────────────────────────────────────────────────╮
│ Select model                                                                 │
│ Current model: crazy-obviously-fake-model-name                               │
│ Current provider: AZURE                                                      │
│ press tab to switch to provider selection                                    │
│                                                                              │
│                                                                              │
│ type to search · enter to confirm · esc to cancel                            │
╰──────────────────────────────────────────────────────────────────────────────╯

What is the expected behavior?

Announce the requested model is unavailable and either state it's using a fallback or just refuse to proceed
Should report the actual model it is using

What do you see instead?

_No response_

Additional information

_No response_

View original on GitHub ↗

This issue has 1 comment on GitHub. Read the full discussion on GitHub ↗