Skip to content

Forward AI Gateway supported URLs#546

Open
omribz156 wants to merge 1 commit into
cloudflare:mainfrom
omribz156:codex/forward-ai-gateway-supported-urls
Open

Forward AI Gateway supported URLs#546
omribz156 wants to merge 1 commit into
cloudflare:mainfrom
omribz156:codex/forward-ai-gateway-supported-urls

Conversation

@omribz156
Copy link
Copy Markdown

Summary

  • Forward supportedUrls from the wrapped language model instead of hardcoding an empty map.
  • Add a regression test covering URL metadata passthrough.
  • Add a patch changeset for ai-gateway-provider.

Fixes #545.

Verification

  • pnpm --dir packages/ai-gateway-provider test:ci -- supported-urls.test.ts
  • pnpm --dir packages/ai-gateway-provider test:ci
  • pnpm --dir packages/ai-gateway-provider type-check
  • pnpm --dir packages/ai-gateway-provider build
  • pnpm exec oxfmt --check packages/ai-gateway-provider/src/index.ts packages/ai-gateway-provider/test/supported-urls.test.ts
  • git diff --check

Local note: on Windows, I used Git Bash as the pnpm script shell for install/build scripts because the repo scripts use POSIX commands.

This was implemented with Codex assistance and manually reviewed before submission.

@changeset-bot
Copy link
Copy Markdown

changeset-bot Bot commented May 18, 2026

🦋 Changeset detected

Latest commit: b496b7e

The changes in this PR will be included in the next version bump.

This PR includes changesets to release 1 package
Name Type
ai-gateway-provider Patch

Not sure what this means? Click here to learn what changesets are.

Click here if you're a maintainer who wants to add another changeset to this PR

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.

ai-gateway-provider: AiGatewayChatLanguageModel hardcodes supportedUrls = {}, defeating provider URL passthrough

1 participant