🎩 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.19
to
7.0.20
+1
-1
package.json
{
"name": "ai",
"version": "7.0.19",
"version": "7.0.20",
"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.",

@@ -145,2 +145,9 @@ import type {

*/
repairToolCall?: ToolCallRepairFunction<NoInfer<TOOLS>>;
/**
* A function that attempts to repair a tool call that failed to parse.
*
* @deprecated Use `repairToolCall` instead.
*/
experimental_repairToolCall?: ToolCallRepairFunction<NoInfer<TOOLS>>;

@@ -147,0 +154,0 @@

import type { ServerResponse } from 'node:http';
type FlushableServerResponse = ServerResponse & {
flush?: () => void;
};
/**

@@ -35,2 +39,7 @@ * Writes the content of a stream to a server response.

const canContinue = response.write(value);
const flush = (response as FlushableServerResponse).flush;
if (typeof flush === 'function') {
flush.call(response);
}
if (!canContinue) {

@@ -37,0 +46,0 @@ await new Promise<void>(resolve => {

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 too big to display

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

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

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