🎩 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
1381
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
6.0.236
to
6.0.237
+1
-1
dist/internal/index.js

@@ -167,3 +167,3 @@ "use strict";

// src/version.ts
var VERSION = true ? "6.0.236" : "0.0.0-test";
var VERSION = true ? "6.0.237" : "0.0.0-test";

@@ -170,0 +170,0 @@ // src/util/download/download.ts

@@ -147,3 +147,3 @@ // internal/index.ts

// src/version.ts
var VERSION = true ? "6.0.236" : "0.0.0-test";
var VERSION = true ? "6.0.237" : "0.0.0-test";

@@ -150,0 +150,0 @@ // src/util/download/download.ts

{
"name": "ai",
"version": "6.0.236",
"version": "6.0.237",
"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.",

@@ -48,3 +48,3 @@ "license": "Apache-2.0",

"@opentelemetry/api": "^1.9.0",
"@ai-sdk/gateway": "3.0.158",
"@ai-sdk/gateway": "3.0.159",
"@ai-sdk/provider": "3.0.14",

@@ -51,0 +51,0 @@ "@ai-sdk/provider-utils": "4.0.40"

@@ -1002,3 +1002,6 @@ import type {

const invalidToolCalls = stepToolCalls.filter(
toolCall => toolCall.invalid && toolCall.dynamic,
toolCall =>
toolCall.invalid &&
toolCall.dynamic &&
!toolCall.providerExecuted,
);

@@ -1005,0 +1008,0 @@

@@ -321,14 +321,16 @@ import type {

if (toolCall.invalid) {
enqueueToolResult({
type: 'tool-error',
toolCallId: toolCall.toolCallId,
toolName: toolCall.toolName,
input: toolCall.input,
error: getErrorMessage(toolCall.error!),
dynamic: true,
title: toolCall.title,
...(toolCall.toolMetadata != null
? { toolMetadata: toolCall.toolMetadata }
: {}),
});
if (!toolCall.providerExecuted) {
enqueueToolResult({
type: 'tool-error',
toolCallId: toolCall.toolCallId,
toolName: toolCall.toolName,
input: toolCall.input,
error: getErrorMessage(toolCall.error!),
dynamic: true,
title: toolCall.title,
...(toolCall.toolMetadata != null
? { toolMetadata: toolCall.toolMetadata }
: {}),
});
}
break;

@@ -335,0 +337,0 @@ }

@@ -282,4 +282,5 @@ import type { JSONObject } from '@ai-sdk/provider';

* A text stream that returns only the generated text deltas. You can use it
* as either an AsyncIterable or a ReadableStream. When an error occurs, the
* stream will throw the error.
* as either an AsyncIterable or a ReadableStream. Error parts are not
* surfaced in this stream. Use the `onError` callback or `fullStream` to
* observe them.
*/

@@ -286,0 +287,0 @@ readonly textStream: AsyncIterableStream<string>;

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 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