mirror of
https://github.com/openclaw/openclaw.git
synced 2026-05-06 16:10:49 +00:00
fix: allow private OpenAI image endpoints
This commit is contained in:
@@ -236,6 +236,10 @@ does not first try `OPENAI_API_KEY` or silently fall back to an API key for that
|
||||
request. Configure `models.providers.openai` explicitly with an API key,
|
||||
custom base URL, or Azure endpoint when you want the direct OpenAI Images API
|
||||
route instead.
|
||||
If that custom image endpoint is on a trusted LAN/private address, also set
|
||||
`browser.ssrfPolicy.dangerouslyAllowPrivateNetwork: true`; OpenClaw keeps
|
||||
private/internal OpenAI-compatible image endpoints blocked unless this opt-in is
|
||||
present.
|
||||
|
||||
Generate:
|
||||
|
||||
|
||||
@@ -35,6 +35,10 @@ Codex OAuth uses the same `openai/gpt-image-2` model ref. When an
|
||||
through that same OAuth profile instead of first trying `OPENAI_API_KEY`.
|
||||
Explicit custom `models.providers.openai` image config, such as an API key or
|
||||
custom/Azure base URL, opts back into the direct OpenAI Images API route.
|
||||
For OpenAI-compatible LAN endpoints such as LocalAI, keep the custom
|
||||
`models.providers.openai.baseUrl` and explicitly opt in with
|
||||
`browser.ssrfPolicy.dangerouslyAllowPrivateNetwork: true`; private/internal
|
||||
image endpoints remain blocked by default.
|
||||
|
||||
3. Ask the agent: _"Generate an image of a friendly robot mascot."_
|
||||
|
||||
|
||||
Reference in New Issue
Block a user