Skip to content

feat(image_gen): support openai key_env override - #33664

Closed
charzhou wants to merge 3 commits into
NousResearch:mainfrom
charzhou:codex-image-gen-openai-key-env
Closed

feat(image_gen): support openai key_env override#33664
charzhou wants to merge 3 commits into
NousResearch:mainfrom
charzhou:codex-image-gen-openai-key-env

Conversation

@charzhou

Copy link
Copy Markdown
Contributor

Summary

  • add image_gen.openai.key_env support for the OpenAI image generation provider
  • accept image_gen.openai.api_key_env as an alias
  • resolve the configured environment variable before falling back to OPENAI_API_KEY
  • pass the resolved key explicitly to openai.OpenAI(api_key=...)

Dependency

Tests

  • ./.venv/bin/python -m pytest tests/plugins/image_gen/test_openai_provider.py tests/tools/test_image_generation_plugin_dispatch.py tests/agent/test_image_gen_registry.py -q -o addopts=

@alt-glitch alt-glitch added type/feature New feature or request comp/plugins Plugin system and bundled plugins tool/vision Vision analysis and image generation P3 Low — cosmetic, nice to have labels May 28, 2026
@charzhou

charzhou commented Jun 2, 2026

Copy link
Copy Markdown
Contributor Author

Closing to resubmit as a clean feature-isolated PR rebased on the latest upstream main after the fork/upstream merge refresh.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

comp/plugins Plugin system and bundled plugins P3 Low — cosmetic, nice to have tool/vision Vision analysis and image generation type/feature New feature or request

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants