@@ -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 |
+2
-2
| { | ||
| "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
URL strings
Supply chain riskPackage contains fragments of external URLs or IP addresses, which the package may be accessing at runtime.
URL strings
Supply chain riskPackage contains fragments of external URLs or IP addresses, which the package may be accessing at runtime.
6781638
0.02%64157
0.02%+ Added
- Removed
Updated