Uh oh!
There was an error while loading. Please reload this page.
Handle Cloudflare AI Gateway responses for codex models - #6534
Conversation
f1ae801 to
08fa7f7CompareClosing this pull request because it has had no updates for more than 60 days. If you plan to continue working on it, feel free to reopen or open a new PR. |
yckbilly1929
commented
Apr 18, 2026
should we re-open this issue? I still struggle to use opencode with Cloudflare AI Gateway gpt-5.3-codex, and does not find any example to successfuly use it. I have tried to follow the documentation and set the three environment variables: [CLOUDFLARE_ACCOUNT_ID, CLOUDFLARE_GATEWAY_ID, CLOUDFLARE_API_TOKEN]. But when i run it, it shows this error message: And I've tried to customize the provider with "@ai-sdk/openai" but in vein. |
Summary
/responsesfor response-only codex/GPT models so they work through the gatewayAuthorizationwhencf-aig-authorizationis present (or gateway token configured) and preserve it otherwise via shared fetch to avoid auth errors while keeping upstream keys usableTesting