Skip to content

feat(image_gen): support openai base_url override - #33647

Closed
charzhou wants to merge 2 commits into
NousResearch:mainfrom
charzhou:codex-image-gen-openai-base-url
Closed

feat(image_gen): support openai base_url override#33647
charzhou wants to merge 2 commits into
NousResearch:mainfrom
charzhou:codex-image-gen-openai-base-url

Conversation

@charzhou

@charzhou charzhou commented May 28, 2026

Copy link
Copy Markdown
Contributor

Summary

  • add explicit image_gen.openai.base_url support for the OpenAI image generation provider
  • pass the configured endpoint to openai.OpenAI(base_url=...) after normalizing trailing slashes
  • keep existing behavior unchanged when no image-gen-specific base URL is configured

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 P3 Low — cosmetic, nice to have comp/plugins Plugin system and bundled plugins provider/openai OpenAI / Codex Responses API labels May 28, 2026
@alt-glitch

Copy link
Copy Markdown
Collaborator

Related to open #18796 which adds both OPENAI_IMAGE_API_MODEL env var and base_url config for third-party image-gen backends. This PR focuses narrowly on the base_url override only.

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 provider/openai OpenAI / Codex Responses API type/feature New feature or request

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants