gpt-6-astra falls back to OPENAI_API_KEY for image generation
Nobody has claimed this yet.
- Dominant language
- Rust
- Stars
- 125k
- Forks
- 19.4k
- PR merge metrics
- PR metrics pending
Description
What version of Codex CLI is running?
latest
What subscription do you have?
API
Which model were you using?
gpt-6-astra
What platform is your computer?
mac
What terminal emulator and version are you using (if applicable)?
No response
Codex doctor report
What issue are you seeing?
not entirely sure what the problem is, i dont see any error logs. im using litellm with codex and it wants to fallback to OPENAI_API_KEY for using the image generation tool. i can confirm that litellm does support the image generation tool and can generate images with astra, but its not clear if codex has that tool available in the session
What steps can reproduce the bug?
- configure litellm proxy in your ~/.codex/config.toml
- start a new codex session with astra
- ask it to generate a logo or a png
What is the expected behavior?
it should use the image gen api with litellm to generate images, and not fall back to the openai api key
Additional information
No response
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start by reproducing the issue with LiteLLM configured in ~/.codex/config.toml, a new Codex session using gpt-6-astra, and an image-generation request. Trace how the image generation tool selects its API credentials and verify that the completed behavior routes through LiteLLM without falling back to OPENAI_API_KEY.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- rust
- Domain
- api, cli
- Issue type
- Bug
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Active
- Clarity
- Needs clarification
- Newbie friendliness
- 45/100