Socket
Socket
Sign inDemoInstall

ai

Package Overview
Dependencies
Maintainers
11
Versions
259
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

ai - npm Package Compare versions

Comparing version 3.4.5 to 3.4.6

14

CHANGELOG.md
# 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 @@

16

package.json
{
"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

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc