Sign In

ai

Package Overview
Dependencies
Maintainers
5
Versions
1434
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
6.0.250
to
6.0.252
+1
-1
dist/internal/index.js

@@ -167,3 +167,3 @@ "use strict";

// src/version.ts
var VERSION = true ? "6.0.250" : "0.0.0-test";
var VERSION = true ? "6.0.252" : "0.0.0-test";

@@ -170,0 +170,0 @@ // src/util/download/download.ts

@@ -147,3 +147,3 @@ // internal/index.ts

// src/version.ts
var VERSION = true ? "6.0.250" : "0.0.0-test";
var VERSION = true ? "6.0.252" : "0.0.0-test";

@@ -150,0 +150,0 @@ // src/util/download/download.ts

{
"name": "ai",
"version": "6.0.250",
"version": "6.0.252",
"description": "AI SDK by Vercel - build apps like ChatGPT, Claude, Gemini, and more with a single interface for any model using the Vercel AI Gateway or go direct to OpenAI, Anthropic, Google, or any other model provider.",

@@ -48,3 +48,3 @@ "license": "Apache-2.0",

"@opentelemetry/api": "^1.9.0",
"@ai-sdk/gateway": "3.0.170",
"@ai-sdk/gateway": "3.0.171",
"@ai-sdk/provider": "3.0.15",

@@ -51,0 +51,0 @@ "@ai-sdk/provider-utils": "4.0.45"

@@ -205,2 +205,3 @@ import type {

| 'seed'
| 'timeout'
| 'headers'

@@ -207,0 +208,0 @@ | 'instructions'

@@ -146,6 +146,8 @@ import { validateTypes, type ModelMessage } from '@ai-sdk/provider-utils';

> {
const preparedCall = await this.prepareCall(options);
return generateText({
...(await this.prepareCall(options)),
...preparedCall,
abortSignal,
timeout,
timeout: timeout ?? preparedCall.timeout,
onStepFinish: this.mergeOnStepFinishCallbacks(onStepFinish),

@@ -167,6 +169,8 @@ });

> {
const preparedCall = await this.prepareCall(options);
return streamText({
...(await this.prepareCall(options)),
...preparedCall,
abortSignal,
timeout,
timeout: timeout ?? preparedCall.timeout,
experimental_transform,

@@ -173,0 +177,0 @@ onStepFinish: this.mergeOnStepFinishCallbacks(onStepFinish),

@@ -54,3 +54,3 @@ import type { EmbeddingModel } from './embedding-model';

*/
rerankingModel(modelId: string): RerankingModel;
rerankingModel?(modelId: string): RerankingModel;
};

@@ -849,11 +849,9 @@ import {

}
} catch (err) {
console.error(err);
}
} finally {
if (this.activeResponse === activeResponse) {
this.activeResponse = undefined;
}
if (this.activeResponse === activeResponse) {
this.activeResponse = undefined;
clearActiveResumeRequest();
}
clearActiveResumeRequest();
}

@@ -860,0 +858,0 @@

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

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 not supported yet