@ai-sdk/provider-utils
Advanced tools
+6
-0
| # @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, |
+5
-1
@@ -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
950032
0.05%12964
0.09%