Update Codex config snippets for Responses Lite image generation
Context
PR #4218 normalized completed hosted image-generation results, while PR #4240 correctly stopped injecting the hosted image_generation tool into Responses Lite requests.
As a result, gpt-5.6-sol image generation now depends on Codex/Desktop's client-side image_gen executor. However, the Codex snippets currently generated by UseKeyModal.vue use requires_openai_auth = true and provide an auth.json. For a custom API-key provider, that configuration does not activate the actor-authorized client image executor.
Minimal config change
Apply only the following changes to the active custom provider:
- requires_openai_auth = true
+ requires_openai_auth = false
+ http_headers = { "x-openai-actor-authorization" = "local-image-extension" }
Enable the extension in the existing features table:
+ image_generation = true
requires_openai_auth controls whether Codex treats this provider as requiring its first-party login/account path; it does not disable upstream authentication. Current Codex versions can continue using the API key already loaded from auth.json when this value is false. The client must be fully restarted and a new thread created so its tool registry is rebuilt.
UI request
Please update the normal and WebSocket Codex snippets in UseKeyModal.vue to include the minimal settings above while keeping the existing auth.json flow. The UI should briefly mention the required restart/new-thread step, label the option along the lines of Codex (API Key Mode), and clarify that force injection is a hosted image bridge for non-Responses-Lite requests only.
Verification
This flow was verified against the same Sub2API endpoint: once the client executor was registered, image_gen generated an image, saved it locally, and emitted a displayable image item.
Related: #4218, #4240
@prince-cheng
5.6使用的response lite的工具设计不一样,需要本地打开 requires_openai_auth = false http_headers = { "x-openai-actor-authorization" = "local-image-extension" } 不需要做base64提取,base64提取是之前链接到旧图片生成逻辑的临时解决方法
不过目前的ChatGPT Desktop貌似还有Bug,不会自动停止,codex那边也有类似的issue
@skadiUnderTides
添加了
requires_openai_auth = false
http_headers = { "x-openai-actor-authorization" = "local-image-extension" }
这两个配置之后, 可以生图和展示图了。 但是每次都会多一个破图出来。 请问有什么解决方案吗?