Skip to content
Discussion options

You must be logged in to vote

Use gpt-image-2. It's the only image model nanobot's Codex provider is set up for, and gpt-image-2.5 isn't a model ID OpenAI publishes, so the backend rejects it with model_not_found.

I checked v0.4.1. With "provider": "openai_codex", nanobot takes tools.imageGeneration.model, strips an openai-codex/ prefix if there is one, and POSTs it with your ChatGPT OAuth token to https://chatgpt.com/backend-api/codex/images/generations. The error body from that endpoint is passed back to you as-is (image_generation.py#L1358-L1455). nanobot doesn't validate the ID, so whatever you type in the model field goes straight to OpenAI. The provider lists gpt-image-2 as its only option (L1367), the docs say …

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@Bennett-Yang
Comment options

Answer selected by Bennett-Yang
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants