Skip to content

Commit

Permalink
Updated types for Workers AI (#3278)
Browse files Browse the repository at this point in the history
* 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
  • Loading branch information
thatsKevinJain authored Jan 18, 2025
1 parent 70e389b commit 34477c1
Show file tree
Hide file tree
Showing 21 changed files with 9,028 additions and 238 deletions.
446 changes: 428 additions & 18 deletions types/defines/ai.d.ts

Large diffs are not rendered by default.

440 changes: 429 additions & 11 deletions types/generated-snapshot/2021-11-03/index.d.ts

Large diffs are not rendered by default.

442 changes: 431 additions & 11 deletions types/generated-snapshot/2021-11-03/index.ts

Large diffs are not rendered by default.

440 changes: 429 additions & 11 deletions types/generated-snapshot/2022-01-31/index.d.ts

Large diffs are not rendered by default.

442 changes: 431 additions & 11 deletions types/generated-snapshot/2022-01-31/index.ts

Large diffs are not rendered by default.

440 changes: 429 additions & 11 deletions types/generated-snapshot/2022-03-21/index.d.ts

Large diffs are not rendered by default.

442 changes: 431 additions & 11 deletions types/generated-snapshot/2022-03-21/index.ts

Large diffs are not rendered by default.

440 changes: 429 additions & 11 deletions types/generated-snapshot/2022-08-04/index.d.ts

Large diffs are not rendered by default.

442 changes: 431 additions & 11 deletions types/generated-snapshot/2022-08-04/index.ts

Large diffs are not rendered by default.

440 changes: 429 additions & 11 deletions types/generated-snapshot/2022-10-31/index.d.ts

Large diffs are not rendered by default.

442 changes: 431 additions & 11 deletions types/generated-snapshot/2022-10-31/index.ts

Large diffs are not rendered by default.

440 changes: 429 additions & 11 deletions types/generated-snapshot/2022-11-30/index.d.ts

Large diffs are not rendered by default.

442 changes: 431 additions & 11 deletions types/generated-snapshot/2022-11-30/index.ts

Large diffs are not rendered by default.

440 changes: 429 additions & 11 deletions types/generated-snapshot/2023-03-01/index.d.ts

Large diffs are not rendered by default.

442 changes: 431 additions & 11 deletions types/generated-snapshot/2023-03-01/index.ts

Large diffs are not rendered by default.

440 changes: 429 additions & 11 deletions types/generated-snapshot/2023-07-01/index.d.ts

Large diffs are not rendered by default.

442 changes: 431 additions & 11 deletions types/generated-snapshot/2023-07-01/index.ts

Large diffs are not rendered by default.

440 changes: 429 additions & 11 deletions types/generated-snapshot/experimental/index.d.ts

Large diffs are not rendered by default.

442 changes: 431 additions & 11 deletions types/generated-snapshot/experimental/index.ts

Large diffs are not rendered by default.

440 changes: 429 additions & 11 deletions types/generated-snapshot/oldest/index.d.ts

Large diffs are not rendered by default.

442 changes: 431 additions & 11 deletions types/generated-snapshot/oldest/index.ts

Large diffs are not rendered by default.

0 comments on commit 34477c1

Please sign in to comment.