Socket
Socket
Sign inDemoInstall

@cloudflare/ai

Package Overview
Dependencies
0
Maintainers
35
Versions
48
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

    @cloudflare/ai

Cloudflare's Workers AI SDK


Version published
Weekly downloads
3.5K
decreased by-16.51%
Maintainers
35
Install size
136 kB
Created
Weekly downloads
 

Readme

Source

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

FAQs

Last updated on 08 May 2024

Did you know?

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc