Comparing version 3.4.18 to 3.4.20
# ai | ||
## 3.4.20 | ||
### Patch Changes | ||
- aa98cdb: chore: more flexible dependency versioning | ||
- 1486128: feat: add supportsUrl to language model specification | ||
- 3b1b69a: feat: provider-defined tools | ||
- 85b98da: revert fix (ai/core): handle tool calls without results in message conversion | ||
- 7ceed77: feat (ai/core): expose response message for each step | ||
- 811a317: feat (ai/core): multi-part tool results (incl. images) | ||
- Updated dependencies [aa98cdb] | ||
- Updated dependencies [1486128] | ||
- Updated dependencies [7b937c5] | ||
- Updated dependencies [3b1b69a] | ||
- Updated dependencies [811a317] | ||
- @ai-sdk/provider-utils@1.0.22 | ||
- @ai-sdk/provider@0.0.26 | ||
- @ai-sdk/ui-utils@0.0.48 | ||
- @ai-sdk/svelte@0.0.54 | ||
- @ai-sdk/react@0.0.66 | ||
- @ai-sdk/vue@0.0.57 | ||
- @ai-sdk/solid@0.0.52 | ||
## 3.4.19 | ||
### Patch Changes | ||
- b9b0d7b: feat (ai): access raw request body | ||
- Updated dependencies [b9b0d7b] | ||
- @ai-sdk/provider@0.0.25 | ||
- @ai-sdk/provider-utils@1.0.21 | ||
- @ai-sdk/ui-utils@0.0.47 | ||
- @ai-sdk/react@0.0.65 | ||
- @ai-sdk/solid@0.0.51 | ||
- @ai-sdk/svelte@0.0.53 | ||
- @ai-sdk/vue@0.0.56 | ||
## 3.4.18 | ||
@@ -4,0 +41,0 @@ |
{ | ||
"name": "ai", | ||
"version": "3.4.18", | ||
"version": "3.4.20", | ||
"description": "AI SDK by Vercel - The AI Toolkit for TypeScript and JavaScript", | ||
@@ -67,16 +67,15 @@ "license": "Apache-2.0", | ||
"dependencies": { | ||
"@ai-sdk/provider": "0.0.24", | ||
"@ai-sdk/provider-utils": "1.0.20", | ||
"@ai-sdk/react": "0.0.64", | ||
"@ai-sdk/solid": "0.0.50", | ||
"@ai-sdk/svelte": "0.0.52", | ||
"@ai-sdk/ui-utils": "0.0.46", | ||
"@ai-sdk/vue": "0.0.55", | ||
"@ai-sdk/provider": "0.0.26", | ||
"@ai-sdk/provider-utils": "1.0.22", | ||
"@ai-sdk/react": "0.0.66", | ||
"@ai-sdk/solid": "0.0.52", | ||
"@ai-sdk/svelte": "0.0.54", | ||
"@ai-sdk/ui-utils": "0.0.48", | ||
"@ai-sdk/vue": "0.0.57", | ||
"@opentelemetry/api": "1.9.0", | ||
"eventsource-parser": "1.1.2", | ||
"jsondiffpatch": "0.6.0", | ||
"json-schema": "0.4.0", | ||
"nanoid": "3.3.6", | ||
"secure-json-parse": "2.7.0", | ||
"zod-to-json-schema": "3.23.2" | ||
"json-schema": "^0.4.0", | ||
"secure-json-parse": "^2.7.0", | ||
"zod-to-json-schema": "^3.23.3" | ||
}, | ||
@@ -83,0 +82,0 @@ "devDependencies": { |
@@ -237,2 +237,11 @@ import { LanguageModelV1FinishReason, LanguageModelV1CallWarning, LanguageModelV1ProviderMetadata, LanguageModelV1 } from '@ai-sdk/provider'; | ||
type ToolResultContent = Array<{ | ||
type: 'text'; | ||
text: string; | ||
} | { | ||
type: 'image'; | ||
data: string; | ||
mimeType?: string; | ||
}>; | ||
/** | ||
@@ -342,2 +351,6 @@ Text content part of a prompt. It contains a string of text. | ||
/** | ||
Multi-part content of the tool result. Only for tools that support multipart results. | ||
*/ | ||
experimental_content?: ToolResultContent; | ||
/** | ||
Optional flag if the result is an error or an error message. | ||
@@ -344,0 +357,0 @@ */ |
@@ -26,2 +26,3 @@ export { convertArrayToReadableStream } from '@ai-sdk/provider-utils/test'; | ||
readonly modelId: LanguageModelV1['modelId']; | ||
supportsUrl: LanguageModelV1['supportsUrl']; | ||
doGenerate: LanguageModelV1['doGenerate']; | ||
@@ -31,5 +32,6 @@ doStream: LanguageModelV1['doStream']; | ||
readonly supportsStructuredOutputs: LanguageModelV1['supportsStructuredOutputs']; | ||
constructor({ provider, modelId, doGenerate, doStream, defaultObjectGenerationMode, supportsStructuredOutputs, }?: { | ||
constructor({ provider, modelId, supportsUrl, doGenerate, doStream, defaultObjectGenerationMode, supportsStructuredOutputs, }?: { | ||
provider?: LanguageModelV1['provider']; | ||
modelId?: LanguageModelV1['modelId']; | ||
supportsUrl?: LanguageModelV1['supportsUrl']; | ||
doGenerate?: LanguageModelV1['doGenerate']; | ||
@@ -36,0 +38,0 @@ doStream?: LanguageModelV1['doStream']; |
@@ -64,2 +64,3 @@ "use strict"; | ||
modelId = "mock-model-id", | ||
supportsUrl = void 0, | ||
doGenerate = notImplemented2, | ||
@@ -75,2 +76,3 @@ doStream = notImplemented2, | ||
this.doStream = doStream; | ||
this.supportsUrl = supportsUrl; | ||
this.defaultObjectGenerationMode = defaultObjectGenerationMode; | ||
@@ -77,0 +79,0 @@ this.supportsStructuredOutputs = supportsStructuredOutputs; |
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is not supported yet
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
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
18
2457792
28087
+ Added@ai-sdk/provider@0.0.26(transitive)
+ Added@ai-sdk/provider-utils@1.0.22(transitive)
+ Added@ai-sdk/react@0.0.66(transitive)
+ Added@ai-sdk/solid@0.0.52(transitive)
+ Added@ai-sdk/svelte@0.0.54(transitive)
+ Added@ai-sdk/ui-utils@0.0.48(transitive)
+ Added@ai-sdk/vue@0.0.57(transitive)
+ Addedzod-to-json-schema@3.23.5(transitive)
- Removednanoid@3.3.6
- Removed@ai-sdk/provider@0.0.24(transitive)
- Removed@ai-sdk/provider-utils@1.0.20(transitive)
- Removed@ai-sdk/react@0.0.64(transitive)
- Removed@ai-sdk/solid@0.0.50(transitive)
- Removed@ai-sdk/svelte@0.0.52(transitive)
- Removed@ai-sdk/ui-utils@0.0.46(transitive)
- Removed@ai-sdk/vue@0.0.55(transitive)
- Removednanoid@3.3.6(transitive)
- Removedzod-to-json-schema@3.23.2(transitive)
Updated@ai-sdk/provider@0.0.26
Updated@ai-sdk/react@0.0.66
Updated@ai-sdk/solid@0.0.52
Updated@ai-sdk/svelte@0.0.54
Updated@ai-sdk/ui-utils@0.0.48
Updated@ai-sdk/vue@0.0.57
Updatedjson-schema@^0.4.0
Updatedsecure-json-parse@^2.7.0
Updatedzod-to-json-schema@^3.23.3