Skip to content

Aig workers ai binding third party - #29864

Merged
ethulia merged 14 commits into
productionfrom
aig-workers-ai-binding-third-party
Apr 16, 2026
Merged

Aig workers ai binding third party#29864
ethulia merged 14 commits into
productionfrom
aig-workers-ai-binding-third-party

Conversation

@ethulia

@ethulia ethulia commented Apr 14, 2026

Copy link
Copy Markdown
Collaborator

Summary

Screenshots (optional)

Documentation checklist

  • Is there a changelog entry (guidelines)? If you don't add one for something awesome and new (however small) — how will our customers find out? Changelogs are automatically posted to RSS feeds, the Discord, and X.
  • The change adheres to the documentation style guide.
  • If a larger change - such as adding a new page- an issue has been opened in relation to any incorrect or out of date information that this PR fixes.
  • Files which have changed name or location have been allocated redirects.

Add a new page documenting how to call OpenAI, Anthropic, Google, and
other third-party models through env.AI.run() with AI Gateway features.
Update worker-binding-methods and Workers AI provider pages with
cross-references to the new page.
@github-actions github-actions Bot added product:ai-gateway AI Gateway: https://developers.cloudflare.com/ai-gateway/ size/m labels Apr 14, 2026
@github-actions

Copy link
Copy Markdown
Contributor

This pull request requires reviews from CODEOWNERS as it changes files that match the following patterns:

Pattern Owners
/src/content/docs/ai-gateway/ @abhishekkankani, @palashgo, @thebongy, @roerohan, @kathayl, @mchenco, @zeke, @superhighfives, @bfirsh, @mattrothenberg, @ethulia, @cloudflare/pcx-technical-writing, @cloudflare/product-owners

@ethulia
ethulia force-pushed the aig-workers-ai-binding-third-party branch 9 times, most recently from 9774e72 to 595b2ad Compare April 14, 2026 21:13
@github-actions

github-actions Bot commented Apr 14, 2026

Copy link
Copy Markdown
Contributor

Preview URL: https://18d1ae39.preview.developers.cloudflare.com
Preview Branch URL: https://aig-workers-ai-binding-third-party.preview.developers.cloudflare.com

Files with changes (up to 15)

Original Link Updated Link
https://developers.cloudflare.com/ai-gateway/integrations/worker-binding-methods/ https://aig-workers-ai-binding-third-party.preview.developers.cloudflare.com/ai-gateway/integrations/worker-binding-methods/
https://developers.cloudflare.com/ai-gateway/features/unified-billing/ https://aig-workers-ai-binding-third-party.preview.developers.cloudflare.com/ai-gateway/features/unified-billing/
https://developers.cloudflare.com/ai-gateway/integrations/vercel-ai-sdk/ https://aig-workers-ai-binding-third-party.preview.developers.cloudflare.com/ai-gateway/integrations/vercel-ai-sdk/
https://developers.cloudflare.com/ai-gateway/integrations/aig-workers-ai-binding/ https://aig-workers-ai-binding-third-party.preview.developers.cloudflare.com/ai-gateway/integrations/aig-workers-ai-binding/
https://developers.cloudflare.com/ai-gateway/usage/providers/workersai/ https://aig-workers-ai-binding-third-party.preview.developers.cloudflare.com/ai-gateway/usage/providers/workersai/
https://developers.cloudflare.com/ai-gateway/integrations/agents/ https://aig-workers-ai-binding-third-party.preview.developers.cloudflare.com/ai-gateway/integrations/agents/
https://developers.cloudflare.com/ai-gateway/evaluations/add-human-feedback-bindings/ https://aig-workers-ai-binding-third-party.preview.developers.cloudflare.com/ai-gateway/evaluations/add-human-feedback-bindings/

@ethulia
ethulia force-pushed the aig-workers-ai-binding-third-party branch 5 times, most recently from 3b2e0f8 to 3f0ed63 Compare April 14, 2026 21:41
Add Google Vertex AI, Cerebras, and Workers AI to the provider-native
endpoints list. Add a new Workers AI binding subsection listing all
providers available through env.AI.run() (Anthropic, OpenAI, Google,
ByteDance, Recraft, MiniMax, Inworld, AssemblyAI, RunwayML, Moonshot AI).
@ethulia
ethulia force-pushed the aig-workers-ai-binding-third-party branch from 3f0ed63 to 0b2bb40 Compare April 14, 2026 21:53
@ethulia

ethulia commented Apr 15, 2026

Copy link
Copy Markdown
Collaborator Author

/bonk review this

@ask-bonk

ask-bonk Bot commented Apr 15, 2026

Copy link
Copy Markdown
Contributor

Reviewing the PR diff against documentation standards.

No critical issues found. The changes are well-structured and follow documentation conventions. Two minor items to consider:

LOW: src/content/docs/ai-gateway/features/unified-billing.mdx line 14 - "receive a single Cloudflare bill" is slightly misleading; users pre-load credits rather than receiving a bill.

LOW: src/content/docs/ai-gateway/integrations/vercel-ai-sdk.mdx line 53 - Link uses singular /ai-gateway/providers/ but the page is at /ai-gateway/usage/providers/ (returns 301 redirect; should use canonical path).

The link anchor #envairun in workersai.mdx works correctly since the heading env.AI.run() slugifies to that ID. All code examples use correct syntax, proper imports are present, and the MDX formatting is valid.

github run

Comment thread src/content/docs/ai-gateway/integrations/aig-workers-ai-binding.mdx Outdated
Comment thread src/content/docs/ai-gateway/integrations/worker-binding-methods.mdx Outdated
@ask-bonk

ask-bonk Bot commented Apr 15, 2026

Copy link
Copy Markdown
Contributor

UnknownError: ProviderInitError

github run

@ask-bonk ask-bonk Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

1 issue needs fixing before merge.

Posted inline suggestions for the model reference update requested by @mchenco and @elithrar.

Comment thread src/content/docs/ai-gateway/integrations/worker-binding-methods.mdx Outdated
@ask-bonk

ask-bonk Bot commented Apr 15, 2026

Copy link
Copy Markdown
Contributor

Review completed for PR #29864.

1 issue needs fixing before merge:

HIGH: src/content/docs/ai-gateway/integrations/worker-binding-methods.mdx line 49 - Model reference needs to be updated from @cf/meta/llama-3.1-8b-instruct to @cf/moonshotai/kimi-k2.5 as requested by @mchenco and @elithrar. Posted an inline suggestion.

No other issues found. The four backticks on line 122 of aig-workers-ai-binding.mdx are correct - they're used to escape the nested triple backticks inside the JSON example. All other changes look good:

  • Proper MDX formatting with no unescaped characters
  • Correct component imports and usage
  • Internal links use proper paths
  • Code examples are syntactically correct

github run

…s.mdx

Co-authored-by: ask-bonk[bot] <249159057+ask-bonk[bot]@users.noreply.github.com>
@mchenco
mchenco self-requested a review April 15, 2026 22:10
Co-authored-by: mchenco <mchenco@users.noreply.github.com>
@ask-bonk

ask-bonk Bot commented Apr 15, 2026

Copy link
Copy Markdown
Contributor

Fixed the issues from the review:

aig-workers-ai-binding.mdx line 122: Changed from 4 backticks to 3 backticks. The inner C code example was reformatted with indentation instead of nested code fences to avoid MDX parsing issues.

worker-binding-methods.mdx line 49: Already correctly updated to @cf/moonshotai/kimi-k2.5 — no changes needed.

github run

@ask-bonk

ask-bonk Bot commented Apr 15, 2026

Copy link
Copy Markdown
Contributor

@ethulia
ethulia merged commit 2b419d2 into production Apr 16, 2026
11 checks passed
@ethulia
ethulia deleted the aig-workers-ai-binding-third-party branch April 16, 2026 08:21
ethulia added a commit that referenced this pull request Apr 16, 2026
…rect model catalog link

Address PR #29864 feedback: convert full URLs to root-relative paths,
wrap Workers code examples with TypeScriptExample for TS/JS tabs, and
point the Vercel AI SDK model link to /ai/models/ instead of /ai-gateway/usage/providers/.
ethulia added a commit that referenced this pull request Apr 17, 2026
…rect model catalog link (#30013)

Address PR #29864 feedback: convert full URLs to root-relative paths,
wrap Workers code examples with TypeScriptExample for TS/JS tabs, and
point the Vercel AI SDK model link to /ai/models/ instead of /ai-gateway/usage/providers/.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

product:ai-gateway AI Gateway: https://developers.cloudflare.com/ai-gateway/ size/m

Projects

None yet

Development

Successfully merging this pull request may close these issues.

10 participants