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

Open
wants to merge 2 commits into
base: main
Choose a base branch
from

Conversation

thatsKevinJain
Copy link

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
Author

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

@thatsKevinJain
Copy link
Author

recheck

github-actions bot added a commit that referenced this pull request Dec 13, 2024
types/defines/ai.d.ts Show resolved Hide resolved
types/defines/ai.d.ts Outdated Show resolved Hide resolved
types/defines/ai.d.ts Outdated Show resolved Hide resolved
types/defines/ai.d.ts Outdated Show resolved Hide resolved
types/defines/ai.d.ts Outdated Show resolved Hide resolved
@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
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