Repository navigation
[Agents] Document createAI catalog ids, dynamic routes, provider-native model objects, and stream resume - #34300
Open
mattzcarey wants to merge 4 commits into
Open
mattzcarey wants to merge 4 commits into
mattzcarey wants to merge 4 commits into
Conversation
…ve model objects, and stream resume
mattzcarey
requested review from
a team,
irvinebroque and
rita3ko
as code owners
October 14, 2026 13:33
Contributor
AI Review✅ Reviewed Commands
|
Contributor
Review coverage🟡 2 ownership areas need approval. Suggested reviewers: @irvinebroque @southpolesteve
CODEOWNERS mappings for displayed areas (2)
|
🚀 Deploying Preview to Cloudflare 🚀Preview URL: https://docs-agents-models-run-and-resume.previews.developers.cloudflare.com (commit eb270e3)This URL reflects your latest Preview deploymentPreview Deployments by commit
|
Contributor
Typically, changelog entries should be dated the day they merge. This is not blocking — if the date is unintentional, please update it. |
Contributor
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Updates the Agents SDK models pages (
/agents/models/, AI SDK, Pi AI) and the OpenCode harness page to matchcreateAIin the nextagentsrelease, and adds a changelog entry that introducescreateAIas a new provider for the AI SDK and Pi AI. The changelog says it replaces the binding mode ofworkers-ai-providerandai-gateway-provider, and that those packages will be deprecated oncecreateAIcovers everything they do. The pages now cover AI Gateway catalog ids (ai("anthropic/claude-opus-5.5")), dynamic routes in both frameworks, model objects on the provider-native endpoint, Pi AI catalog models onenv.AI.run(), thebyokAliasoption, and automatic stream resume.The current pages say model objects go through
env.AI.gateway(id).run(), the deprecated Universal Endpoint, and that a string must be a@cf/id. Neither is true after the next release:byokAliaszdr,vendorKey) and feat(agents): AI Gateway dynamic routes in createAI agents#2572 (dynamic routes) shipped inagents0.28.1workers-ai-providerandai-gateway-providerin favour ofcreateAI, which the pages note in one lineMerge after the next
agentsrelease, which ships #2576 and #2589. No page pins a version number.Blocker for the Pi AI examples:
@earendil-works/pi-ai1.2.0 (latest) spells Anthropic ids in its Cloudflare AI Gateway catalog the vendor's way (claude-opus-5-5, 1.0.0 hadclaude-opus-5.5).agents/models/pi-aikeys catalog ids off that list and sends the key to/run, so with 1.2.0ai("anthropic/claude-opus-5.5")throws andai("anthropic/claude-opus-5-5")sends an id the AI Gateway catalog does not list. This needs a fix inagentsbefore release.The BYOK page says
env.AI.run()only uses thedefaultalias. The gateway code forwardscf-aig-byok-aliasfrom the binding and looks up the stored key under it, so the models pages saybyokAliasworks for catalog models. The BYOK page may need its own update.pnpm run check,pnpm run buildandpnpm run lint:nimbuspass. Claims checked againstmainof cloudflare/agents.