Latest Threat Research:SANDWORM_MODE: Shai-Hulud-Style npm Worm Hijacks CI Workflows and Poisons AI Toolchains.Details
Socket
Book a DemoInstallSign in
Socket

@ai-sdk/openai

Package Overview
Dependencies
Maintainers
3
Versions
454
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@ai-sdk/openai - npm Package Compare versions

Comparing version
3.0.30
to
3.0.31
+5
-5
dist/index.d.mts

@@ -52,3 +52,3 @@ import * as _ai_sdk_provider from '@ai-sdk/provider';

*/
action: {
action?: {
/**

@@ -350,3 +350,3 @@ * Action type "search" - Performs a web search query.

status: string;
action: {
action?: {
type: "search";

@@ -368,3 +368,3 @@ query?: string | null | undefined;

pattern?: string | null | undefined;
};
} | null | undefined;
} | {

@@ -786,3 +786,3 @@ type: "file_search_call";

webSearchPreview: _ai_sdk_provider_utils.ProviderToolFactoryWithOutputSchema<{}, {
action: {
action?: {
type: "search";

@@ -817,3 +817,3 @@ query?: string;

webSearch: (args?: Parameters<typeof webSearchToolFactory>[0]) => _ai_sdk_provider_utils.Tool<{}, {
action: {
action?: {
type: "search";

@@ -820,0 +820,0 @@ query?: string;

@@ -52,3 +52,3 @@ import * as _ai_sdk_provider from '@ai-sdk/provider';

*/
action: {
action?: {
/**

@@ -350,3 +350,3 @@ * Action type "search" - Performs a web search query.

status: string;
action: {
action?: {
type: "search";

@@ -368,3 +368,3 @@ query?: string | null | undefined;

pattern?: string | null | undefined;
};
} | null | undefined;
} | {

@@ -786,3 +786,3 @@ type: "file_search_call";

webSearchPreview: _ai_sdk_provider_utils.ProviderToolFactoryWithOutputSchema<{}, {
action: {
action?: {
type: "search";

@@ -817,3 +817,3 @@ query?: string;

webSearch: (args?: Parameters<typeof webSearchToolFactory>[0]) => _ai_sdk_provider_utils.Tool<{}, {
action: {
action?: {
type: "search";

@@ -820,0 +820,0 @@ query?: string;

@@ -408,3 +408,3 @@ import { LanguageModelV3, LanguageModelV3CallOptions, LanguageModelV3GenerateResult, LanguageModelV3StreamResult, EmbeddingModelV3, ImageModelV3, TranscriptionModelV3CallOptions, TranscriptionModelV3, SpeechModelV3 } from '@ai-sdk/provider';

status: string;
action: {
action?: {
type: "search";

@@ -426,3 +426,3 @@ query?: string | null | undefined;

pattern?: string | null | undefined;
};
} | null | undefined;
} | {

@@ -1051,3 +1051,3 @@ type: "file_search_call";

*/
action: {
action?: {
/**

@@ -1054,0 +1054,0 @@ * Action type "search" - Performs a web search query.

@@ -408,3 +408,3 @@ import { LanguageModelV3, LanguageModelV3CallOptions, LanguageModelV3GenerateResult, LanguageModelV3StreamResult, EmbeddingModelV3, ImageModelV3, TranscriptionModelV3CallOptions, TranscriptionModelV3, SpeechModelV3 } from '@ai-sdk/provider';

status: string;
action: {
action?: {
type: "search";

@@ -426,3 +426,3 @@ query?: string | null | undefined;

pattern?: string | null | undefined;
};
} | null | undefined;
} | {

@@ -1051,3 +1051,3 @@ type: "file_search_call";

*/
action: {
action?: {
/**

@@ -1054,0 +1054,0 @@ * Action type "search" - Performs a web search query.

{
"name": "@ai-sdk/openai",
"version": "3.0.30",
"version": "3.0.31",
"license": "Apache-2.0",

@@ -5,0 +5,0 @@ "sideEffects": false,

@@ -602,25 +602,27 @@ import { JSONSchema7 } from '@ai-sdk/provider';

status: z.string(),
action: z.discriminatedUnion('type', [
z.object({
type: z.literal('search'),
query: z.string().nullish(),
sources: z
.array(
z.discriminatedUnion('type', [
z.object({ type: z.literal('url'), url: z.string() }),
z.object({ type: z.literal('api'), name: z.string() }),
]),
)
.nullish(),
}),
z.object({
type: z.literal('open_page'),
url: z.string().nullish(),
}),
z.object({
type: z.literal('find_in_page'),
url: z.string().nullish(),
pattern: z.string().nullish(),
}),
]),
action: z
.discriminatedUnion('type', [
z.object({
type: z.literal('search'),
query: z.string().nullish(),
sources: z
.array(
z.discriminatedUnion('type', [
z.object({ type: z.literal('url'), url: z.string() }),
z.object({ type: z.literal('api'), name: z.string() }),
]),
)
.nullish(),
}),
z.object({
type: z.literal('open_page'),
url: z.string().nullish(),
}),
z.object({
type: z.literal('find_in_page'),
url: z.string().nullish(),
pattern: z.string().nullish(),
}),
])
.nullish(),
}),

@@ -970,25 +972,30 @@ z.object({

status: z.string(),
action: z.discriminatedUnion('type', [
z.object({
type: z.literal('search'),
query: z.string().nullish(),
sources: z
.array(
z.discriminatedUnion('type', [
z.object({ type: z.literal('url'), url: z.string() }),
z.object({ type: z.literal('api'), name: z.string() }),
]),
)
.nullish(),
}),
z.object({
type: z.literal('open_page'),
url: z.string().nullish(),
}),
z.object({
type: z.literal('find_in_page'),
url: z.string().nullish(),
pattern: z.string().nullish(),
}),
]),
action: z
.discriminatedUnion('type', [
z.object({
type: z.literal('search'),
query: z.string().nullish(),
sources: z
.array(
z.discriminatedUnion('type', [
z.object({ type: z.literal('url'), url: z.string() }),
z.object({
type: z.literal('api'),
name: z.string(),
}),
]),
)
.nullish(),
}),
z.object({
type: z.literal('open_page'),
url: z.string().nullish(),
}),
z.object({
type: z.literal('find_in_page'),
url: z.string().nullish(),
pattern: z.string().nullish(),
}),
])
.nullish(),
}),

@@ -995,0 +1002,0 @@ z.object({

@@ -32,17 +32,19 @@ import {

z.object({
action: z.discriminatedUnion('type', [
z.object({
type: z.literal('search'),
query: z.string().optional(),
}),
z.object({
type: z.literal('openPage'),
url: z.string().nullish(),
}),
z.object({
type: z.literal('findInPage'),
url: z.string().nullish(),
pattern: z.string().nullish(),
}),
]),
action: z
.discriminatedUnion('type', [
z.object({
type: z.literal('search'),
query: z.string().optional(),
}),
z.object({
type: z.literal('openPage'),
url: z.string().nullish(),
}),
z.object({
type: z.literal('findInPage'),
url: z.string().nullish(),
pattern: z.string().nullish(),
}),
])
.optional(),
}),

@@ -61,3 +63,3 @@ ),

*/
action:
action?:
| {

@@ -64,0 +66,0 @@ /**

@@ -34,17 +34,19 @@ import {

z.object({
action: z.discriminatedUnion('type', [
z.object({
type: z.literal('search'),
query: z.string().optional(),
}),
z.object({
type: z.literal('openPage'),
url: z.string().nullish(),
}),
z.object({
type: z.literal('findInPage'),
url: z.string().nullish(),
pattern: z.string().nullish(),
}),
]),
action: z
.discriminatedUnion('type', [
z.object({
type: z.literal('search'),
query: z.string().optional(),
}),
z.object({
type: z.literal('openPage'),
url: z.string().nullish(),
}),
z.object({
type: z.literal('findInPage'),
url: z.string().nullish(),
pattern: z.string().nullish(),
}),
])
.optional(),
sources: z

@@ -71,3 +73,3 @@ .array(

*/
action:
action?:
| {

@@ -74,0 +76,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 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