🎩 You're Invited:Meet the Socket team at Black Hat in Las Vegas, August 3-6.RSVP
Sign In

ai

Package Overview
Dependencies
Maintainers
5
Versions
1336
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

ai - npm Package Compare versions

Comparing version
7.0.21
to
7.0.22
+1
-1
package.json
{
"name": "ai",
"version": "7.0.21",
"version": "7.0.22",
"type": "module",

@@ -5,0 +5,0 @@ "description": "AI SDK by Vercel - build apps like ChatGPT, Claude, Gemini, and more with a single interface for any model using the Vercel AI Gateway or go direct to OpenAI, Anthropic, Google, or any other model provider.",

@@ -97,3 +97,12 @@ import { safeParseJSON } from '@ai-sdk/provider-utils';

if (this.ws?.readyState === WebSocket.OPEN) {
this.ws.send(JSON.stringify(data));
if (
typeof data === 'string' ||
data instanceof ArrayBuffer ||
ArrayBuffer.isView(data) ||
data instanceof Blob
) {
this.ws.send(data);
} else {
this.ws.send(JSON.stringify(data));
}
}

@@ -100,0 +109,0 @@ }

Sorry, the diff of this file is too big to display

Sorry, the diff of this file is too big to display

Sorry, the diff of this file is too big to display

Sorry, the diff of this file is too big to display

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet