Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

ai

Package Overview
Dependencies
Maintainers
11
Versions
289
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.18 to 3.4.20

37

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

23

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

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