-
Notifications
You must be signed in to change notification settings - Fork 5.2k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Workers AI Model Catalog & Model Pages (#17068)
* Implement catalog and new model pages * Implement build-time model data fetching * Create prompting guide * Clean up schema handling * Fix schema links * Re-add external links * Fix rehypeExternalLinks import * Fix Models navigation link * Styling fixes for Dark Mode * Implement responsive design * Type fixes * Update Model page types * Add llama-3.2 agreement notice * Fix search types * Add static model fetching * Added flux * Add llama-70b --------- Co-authored-by: Kian <kian@kian.org.uk>
- Loading branch information
Showing
156 changed files
with
3,007 additions
and
3,351 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
import fs from "fs"; | ||
|
||
fetch("https://ai.cloudflare.com/api/models") | ||
.then((res) => res.json()) | ||
.then((data) => { | ||
data.models.forEach((model) => { | ||
const fileName = model.name.split("/")[2]; | ||
fs.writeFileSync( | ||
`./src/content/workers-ai-models/${fileName}.json`, | ||
JSON.stringify(model), | ||
"utf-8", | ||
); | ||
}); | ||
}); |
Oops, something went wrong.