[PR #6534] Handle Cloudflare AI Gateway responses for codex models #11961

Open
opened 2026-02-16 18:16:54 -05:00 by yindo · 0 comments
Owner

Original Pull Request: https://github.com/anomalyco/opencode/pull/6534

State: open
Merged: No


Summary

  • Route Cloudflare AI Gateway requests to namespace base URLs and force /responses for response-only codex/GPT models so they work through the gateway
  • Strip Authorization when cf-aig-authorization is present (or gateway token configured) and preserve it otherwise via shared fetch to avoid auth errors while keeping upstream keys usable
  • Add provider tests covering gateway Authorization handling and ignore local log/build artifacts

Testing

  • bun turbo typecheck
**Original Pull Request:** https://github.com/anomalyco/opencode/pull/6534 **State:** open **Merged:** No --- ## Summary - Route Cloudflare AI Gateway requests to namespace base URLs and force `/responses` for response-only codex/GPT models so they work through the gateway - Strip `Authorization` when `cf-aig-authorization` is present (or gateway token configured) and preserve it otherwise via shared fetch to avoid auth errors while keeping upstream keys usable - Add provider tests covering gateway Authorization handling and ignore local log/build artifacts ## Testing - bun turbo typecheck
yindo added the pull-request label 2026-02-16 18:16:54 -05:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: anomalyco/opencode#11961