Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Introducing better Workers AI types #3242

Merged
merged 2 commits into from
Dec 19, 2024

Conversation

thatsKevinJain
Copy link
Contributor

With growing a growing list of supported models and their capabilities, we are making it simpler to infer input/output types from model names.

From users perspective, they will still be able to call AI.run("<model-name>", {<inputs>}, {<options>}), but we are modifying the type definitions to make it easier for future updates.

With growing a growing list of supported models and their capabilities, we are making it simpler to infer input/output types from model names.

From users perspective, they will still be able to call `AI.run("<model-name>", {<inputs>}, {<options>})`, but we are modifying the type definitions to make it easier for future changes.
@thatsKevinJain thatsKevinJain requested review from a team as code owners December 13, 2024 20:46
Copy link

github-actions bot commented Dec 13, 2024

All contributors have signed the CLA ✍️ ✅
Posted by the CLA Assistant Lite bot.

@thatsKevinJain
Copy link
Contributor Author

I have read the CLA Document and I hereby sign the CLA

@thatsKevinJain
Copy link
Contributor Author

recheck

github-actions bot added a commit that referenced this pull request Dec 13, 2024
@thatsKevinJain thatsKevinJain force-pushed the kevin/update-workers-ai-types branch from c3f5e94 to 83a5731 Compare December 16, 2024 17:07
Optional `string` values are replaced by `(string & {})`
`AiTextToImageOutput` will continue to have `ReadableStream<Uint8Array>`
@thatsKevinJain thatsKevinJain force-pushed the kevin/update-workers-ai-types branch from 83a5731 to d347dee Compare December 17, 2024 14:51
@mar-cf mar-cf requested a review from G4brym December 19, 2024 15:19
@mar-cf
Copy link
Contributor

mar-cf commented Dec 19, 2024

@G4brym could you please look this over?

@G4brym
Copy link
Contributor

G4brym commented Dec 19, 2024

lgtm, I've been working with Kevin on these changes

@fhanau fhanau merged commit 03401f0 into cloudflare:main Dec 19, 2024
12 checks passed
@muhajirdev
Copy link

is this released yet? trying to use llama 3.3

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.

6 participants