New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

workers-ai-provider

Package Overview
Dependencies
Maintainers
0
Versions
14
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

workers-ai-provider - npm Package Compare versions

Comparing version 0.0.9 to 0.0.10

2

package.json

@@ -5,3 +5,3 @@ {

"type": "module",
"version": "0.0.9",
"version": "0.0.10",
"main": "dist/index.js",

@@ -8,0 +8,0 @@ "types": "dist/index.d.ts",

@@ -1,8 +0,5 @@

# workers-ai-provider ⬡ ⤫ ▴
# ⛅️ ✨ workers-ai-provider ✨ ⛅️
A custom provider that enables [Workers AI](https://ai.cloudflare.com/)'s models for the [Vercel AI SDK](https://sdk.vercel.ai/).
> [!CAUTION]
> This project is in its experimental early stages and is not recommended for production use.
## Install

@@ -16,3 +13,3 @@

First, setup an AI binding in `wrangler.toml`:
First, setup an AI binding in `wrangler.toml` in your Workers project:

@@ -52,3 +49,11 @@ ```toml

return text.toTextStreamResponse();
return text.toTextStreamResponse({
headers: {
// add these headers to ensure that the
// response is chunked and streamed
"Content-Type": "text/x-unknown",
"content-encoding": "identity",
"transfer-encoding": "chunked",
},
});
},

@@ -55,0 +60,0 @@ };

SocketSocket SOC 2 Logo

Product

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

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc