Skip to content

Handle Cloudflare AI Gateway responses for codex models#6534

Closed
jameskyle wants to merge 1 commit intoanomalyco:devfrom
jameskyle:cloudflare-gareway-responses
Closed

Handle Cloudflare AI Gateway responses for codex models#6534
jameskyle wants to merge 1 commit intoanomalyco:devfrom
jameskyle:cloudflare-gareway-responses

Conversation

@jameskyle
Copy link

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

@github-actions
Copy link
Contributor

github-actions bot commented Mar 2, 2026

Closing 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.

@github-actions github-actions bot closed this Mar 2, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant