Comparing version 3.4.5 to 3.4.6
# ai | ||
## 3.4.6 | ||
### Patch Changes | ||
- d595d0d: feat (ai/core): file content parts | ||
- Updated dependencies [d595d0d] | ||
- @ai-sdk/provider@0.0.24 | ||
- @ai-sdk/provider-utils@1.0.20 | ||
- @ai-sdk/ui-utils@0.0.46 | ||
- @ai-sdk/react@0.0.62 | ||
- @ai-sdk/solid@0.0.49 | ||
- @ai-sdk/svelte@0.0.51 | ||
- @ai-sdk/vue@0.0.53 | ||
## 3.4.5 | ||
@@ -4,0 +18,0 @@ |
{ | ||
"name": "ai", | ||
"version": "3.4.5", | ||
"version": "3.4.6", | ||
"description": "AI SDK by Vercel - The AI Toolkit for TypeScript and JavaScript", | ||
@@ -67,9 +67,9 @@ "license": "Apache-2.0", | ||
"dependencies": { | ||
"@ai-sdk/provider": "0.0.23", | ||
"@ai-sdk/provider-utils": "1.0.19", | ||
"@ai-sdk/react": "0.0.61", | ||
"@ai-sdk/solid": "0.0.48", | ||
"@ai-sdk/svelte": "0.0.50", | ||
"@ai-sdk/ui-utils": "0.0.45", | ||
"@ai-sdk/vue": "0.0.52", | ||
"@ai-sdk/provider": "0.0.24", | ||
"@ai-sdk/provider-utils": "1.0.20", | ||
"@ai-sdk/react": "0.0.62", | ||
"@ai-sdk/solid": "0.0.49", | ||
"@ai-sdk/svelte": "0.0.51", | ||
"@ai-sdk/ui-utils": "0.0.46", | ||
"@ai-sdk/vue": "0.0.53", | ||
"@opentelemetry/api": "1.9.0", | ||
@@ -76,0 +76,0 @@ "eventsource-parser": "1.1.2", |
@@ -277,2 +277,25 @@ import { LanguageModelV1FinishReason, LanguageModelV1CallWarning, LanguageModelV1ProviderMetadata, LanguageModelV1 } from '@ai-sdk/provider'; | ||
/** | ||
File content part of a prompt. It contains a file. | ||
*/ | ||
interface FilePart { | ||
type: 'file'; | ||
/** | ||
File data. Can either be: | ||
- data: a base64-encoded string, a Uint8Array, an ArrayBuffer, or a Buffer | ||
- URL: a URL that points to the image | ||
*/ | ||
data: DataContent | URL; | ||
/** | ||
Mime type of the file. | ||
*/ | ||
mimeType: string; | ||
/** | ||
Additional provider-specific metadata. They are passed through | ||
to the provider from the AI SDK and enable provider-specific | ||
functionality that can be fully encapsulated in the provider. | ||
*/ | ||
experimental_providerMetadata?: ProviderMetadata; | ||
} | ||
/** | ||
Tool call content part of a prompt. It contains a tool call (usually generated by the AI model). | ||
@@ -363,3 +386,3 @@ */ | ||
*/ | ||
type UserContent = string | Array<TextPart | ImagePart>; | ||
type UserContent = string | Array<TextPart | ImagePart | FilePart>; | ||
/** | ||
@@ -366,0 +389,0 @@ An assistant message. It can contain text, tool calls, or a combination of text and tool calls. |
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
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
2436354
27794
+ Added@ai-sdk/provider@0.0.24(transitive)
+ Added@ai-sdk/provider-utils@1.0.20(transitive)
+ Added@ai-sdk/react@0.0.62(transitive)
+ Added@ai-sdk/solid@0.0.49(transitive)
+ Added@ai-sdk/svelte@0.0.51(transitive)
+ Added@ai-sdk/ui-utils@0.0.46(transitive)
+ Added@ai-sdk/vue@0.0.53(transitive)
- Removed@ai-sdk/provider@0.0.23(transitive)
- Removed@ai-sdk/provider-utils@1.0.19(transitive)
- Removed@ai-sdk/react@0.0.61(transitive)
- Removed@ai-sdk/solid@0.0.48(transitive)
- Removed@ai-sdk/svelte@0.0.50(transitive)
- Removed@ai-sdk/ui-utils@0.0.45(transitive)
- Removed@ai-sdk/vue@0.0.52(transitive)
Updated@ai-sdk/provider@0.0.24
Updated@ai-sdk/react@0.0.62
Updated@ai-sdk/solid@0.0.49
Updated@ai-sdk/svelte@0.0.51
Updated@ai-sdk/ui-utils@0.0.46
Updated@ai-sdk/vue@0.0.53