This package has been deprecated

Author message:

Thanks for using @cloudflare/ai: This package has been deprecated in favor of the native binding, learn more here https://developers.cloudflare.com/workers-ai/configuration/bindings/

@cloudflare/ai
TypeScript icon, indicating that this package has built-in type declarations

1.2.2 • Public • Published

Workers 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'"
});

/@cloudflare/ai/

    Package Sidebar

    Install

    npm i @cloudflare/ai

    Weekly Downloads

    3,251

    Version

    1.2.2

    License

    MIT

    Unpacked Size

    139 kB

    Total Files

    28

    Last publish

    Collaborators

    • asapzacy
    • celso
    • cf-ci-write
    • cf-ci2
    • cf-media-manager
    • cf-radar
    • chiminator
    • dash_service_account
    • dcruz_cf
    • g4brym
    • geelen
    • gregbrimble
    • gurjinder
    • jacobbednarz
    • jasnell
    • jculvey
    • jsteinberger
    • lbarthonet
    • lerwincf
    • lvalenta
    • marksteyn
    • pcostanzo
    • rexscaria
    • segments-write
    • sejoker
    • sgoodhew_cf
    • snigdha34
    • terinjokes
    • thibmeu
    • third774
    • vasturiano
    • worenga
    • wrangler-publisher
    • xortive
    • xuranwang