@cloudflare/ai
v1.2.2Workers AI SDK
This package has been deprecated in favor of a new native AI binding, read more here.
You can use the new native binding just by calling the .run()
directly in the binding like this:
const answer = env.AI.run('@cf/meta/llama-2-7b-chat-int8', {
prompt: "What is the origin of the phrase 'Hello, World'"
});
npm i @cloudflare/ai
Metadata
- MIT
- Whatever
- Celso Martinho
- released 5/8/2024
Downloads
Maintainers
lerwincf, lbarthonet, cf-media-manager, jacobbednarz, celso, cf-radar, dash_service_account, g4brym, snigdha34, wrangler-publisher, marksteyn, chiminator, sgoodhew_cf, terinjokes, third774, jsteinberger, jasnell, asapzacy, pcostanzo, gregbrimble, geelen, rexscaria, dcruz_cf, xuranwang, jculvey, sejoker, vasturiano, cf-ci-write, segments-write, thibmeu, xortive, gurjinder, cf-ci2, lvalenta, worenga,