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

@ai-sdk/provider-utils

Package Overview
Dependencies
Maintainers
3
Versions
326
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@ai-sdk/provider-utils - npm Package Compare versions

Comparing version
4.0.39
to
4.0.40
+6
-0
CHANGELOG.md
# @ai-sdk/provider-utils
## 4.0.40
### Patch Changes
- 19093fd: fix(ai): call `onInputStart` before `onInputAvailable` during non-streaming tool calls
## 4.0.39

@@ -4,0 +10,0 @@

+2
-2

@@ -1173,4 +1173,4 @@ import { LanguageModelV3FunctionTool, LanguageModelV3ProviderTool, ImageModelV3File, AISDKError, JSONSchema7, JSONParseError, TypeValidationError, JSONValue, APICallError, LanguageModelV3Prompt, SharedV3ProviderOptions, JSONObject, TypeValidationContext } from '@ai-sdk/provider';

/**
* Optional function that is called when the argument streaming starts.
* Only called when the tool is used in a streaming context.
* Optional function that is called when the model starts generating the tool input.
* In non-streaming contexts, it is called immediately before `onInputAvailable`.
*/

@@ -1177,0 +1177,0 @@ onInputStart?: (options: ToolExecutionOptions) => void | PromiseLike<void>;

@@ -1173,4 +1173,4 @@ import { LanguageModelV3FunctionTool, LanguageModelV3ProviderTool, ImageModelV3File, AISDKError, JSONSchema7, JSONParseError, TypeValidationError, JSONValue, APICallError, LanguageModelV3Prompt, SharedV3ProviderOptions, JSONObject, TypeValidationContext } from '@ai-sdk/provider';

/**
* Optional function that is called when the argument streaming starts.
* Only called when the tool is used in a streaming context.
* Optional function that is called when the model starts generating the tool input.
* In non-streaming contexts, it is called immediately before `onInputAvailable`.
*/

@@ -1177,0 +1177,0 @@ onInputStart?: (options: ToolExecutionOptions) => void | PromiseLike<void>;

{
"name": "@ai-sdk/provider-utils",
"version": "4.0.39",
"version": "4.0.40",
"license": "Apache-2.0",

@@ -5,0 +5,0 @@ "sideEffects": false,

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

/**
* Optional function that is called when the argument streaming starts.
* Only called when the tool is used in a streaming context.
* Optional function that is called when the model starts generating the tool input.
* In non-streaming contexts, it is called immediately before `onInputAvailable`.
*/

@@ -178,0 +178,0 @@ onInputStart?: (options: ToolExecutionOptions) => void | PromiseLike<void>;

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