Repository navigation
wrangler@3.9.1
·
7132 commits
to main
since this release
Patch Changes
-
#3992
35564741Thanks @edevil! - Add AI binding that will be used to interact with the AI project.Example
wrangler.tomlname = "ai-worker" main = "src/index.ts" [ai] binding = "AI"Example script:
import Ai from "@cloudflare/ai" export default { async fetch(request: Request, env: Env): Promise<Response> { const ai = new Ai(env.AI); const story = await ai.run({ model: 'llama-2', input: { prompt: 'Tell me a story about the future of the Cloudflare dev platform' } }); return new Response(JSON.stringify(story)); }, }; export interface Env { AI: any; } -
#4006
bc8c147aThanks @rozenmd! - fix: remove warning around using D1's binding, and clean up the epilogue when running D1 commands -
#4027
9e466599Thanks @jspspike! - Add WebGPU support through miniflare update -
#3986
00247a8dThanks @edevil! - Added AI related CLI commands