Skip to content
Commit Detail

Commit 34477c1

Author
Kevin Jain <kevinvikas@cloudflare.com> 2025-01-18 12:43:18 -0600
Parents
70e389b
Tree
591fe1a
Updated types for Workers AI (#3278)

* Updated types for Workers AI

We are moving types for supported models under a new NPM package (https://www.npmjs.com/package/@cloudflare/ai-types).

This PR removes all the model specific types and converts AI.run() into a generic function.

* added generated snapshot files

* Reverted breaking changes, added new models in the list

added whisper, whisper-tiny-en, whisper-large-v3-turbo, llama-3.2-11b-vision-instruct to the list

* added flux-1-schnell to the model catalog

Files changed