🎩 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.36
to
4.0.37
+6
-0
CHANGELOG.md
# @ai-sdk/provider-utils
## 4.0.37
### Patch Changes
- d559de9: Ensure the default empty tool input schema includes `type: "object"` for OpenAI-compatible providers that require object schemas.
## 4.0.36

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

+1
-1
{
"name": "@ai-sdk/provider-utils",
"version": "4.0.36",
"version": "4.0.37",
"license": "Apache-2.0",

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

@@ -139,3 +139,7 @@ import { TypeValidationError, type JSONSchema7 } from '@ai-sdk/provider';

return schema == null
? jsonSchema({ properties: {}, additionalProperties: false })
? jsonSchema({
type: 'object',
properties: {},
additionalProperties: false,
})
: isSchema(schema)

@@ -142,0 +146,0 @@ ? schema

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