Skip to content

docs: Add generateText example to workers-ai-provider and clarify supported methods#216

Merged
threepointone merged 4 commits intocloudflare:mainfrom
wussh:doc-improvements
Sep 3, 2025
Merged

docs: Add generateText example to workers-ai-provider and clarify supported methods#216
threepointone merged 4 commits intocloudflare:mainfrom
wussh:doc-improvements

Conversation

@wussh
Copy link
Copy Markdown
Contributor

@wussh wussh commented Jun 20, 2025

Documentation Improvements for AI Providers

Changes

This PR makes the following documentation improvements:

  1. Added an example of using the generateText function with the workers-ai-provider, which was previously missing from the documentation but shown in the text-generation demo.

  2. Clarified the "Supported Methods" section in the ai-gateway-provider documentation to better explain what functionality is currently available and what is planned for future releases.

Why

These changes make the documentation more comprehensive and help users understand how to use both providers effectively. The added example for generateText provides a non-streaming alternative that was not previously documented in the workers-ai-provider README.

Testing

Documentation changes only - no functional changes to test.

@wussh wussh requested a review from G4brym as a code owner June 20, 2025 05:01
@changeset-bot
Copy link
Copy Markdown

changeset-bot Bot commented Jun 20, 2025

🦋 Changeset detected

Latest commit: e09da2a

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

This PR includes changesets to release 2 packages
Name Type
workers-ai-provider Patch
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

Copy link
Copy Markdown
Collaborator

@threepointone threepointone left a comment

Choose a reason for hiding this comment

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

thanks!

@threepointone threepointone merged commit f153fd6 into cloudflare:main Sep 3, 2025
@threepointone threepointone mentioned this pull request Sep 3, 2025
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.

2 participants