@ai-sdk/openai 3.0.81 → 3.0.82

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -262,6 +262,21 @@ type OpenAIResponsesFileSearchToolCompoundFilter = {
262
262
  declare const openaiResponsesChunkSchema: _ai_sdk_provider_utils.LazySchema<{
263
263
  type: "unknown_chunk";
264
264
  message: string;
265
+ } | {
266
+ type: "error";
267
+ sequence_number: number;
268
+ error: {
269
+ type: string;
270
+ code: string;
271
+ message: string;
272
+ param?: string | null | undefined;
273
+ };
274
+ } | {
275
+ type: "error";
276
+ sequence_number: number;
277
+ message: string;
278
+ code?: string | null | undefined;
279
+ param?: string | null | undefined;
265
280
  } | {
266
281
  type: "response.output_text.delta";
267
282
  item_id: string;
@@ -297,6 +312,7 @@ declare const openaiResponsesChunkSchema: _ai_sdk_provider_utils.LazySchema<{
297
312
  };
298
313
  } | {
299
314
  type: "response.failed";
315
+ sequence_number: number;
300
316
  response: {
301
317
  error?: {
302
318
  message: string;
@@ -704,15 +720,6 @@ declare const openaiResponsesChunkSchema: _ai_sdk_provider_utils.LazySchema<{
704
720
  item_id: string;
705
721
  output_index: number;
706
722
  diff: string;
707
- } | {
708
- type: "error";
709
- sequence_number: number;
710
- error: {
711
- type: string;
712
- code: string;
713
- message: string;
714
- param?: string | null | undefined;
715
- };
716
723
  }>;
717
724
  type OpenAIResponsesChunk = InferSchema<typeof openaiResponsesChunkSchema>;
718
725
  type OpenAIResponsesLogprobs = NonNullable<(OpenAIResponsesChunk & {
@@ -262,6 +262,21 @@ type OpenAIResponsesFileSearchToolCompoundFilter = {
262
262
  declare const openaiResponsesChunkSchema: _ai_sdk_provider_utils.LazySchema<{
263
263
  type: "unknown_chunk";
264
264
  message: string;
265
+ } | {
266
+ type: "error";
267
+ sequence_number: number;
268
+ error: {
269
+ type: string;
270
+ code: string;
271
+ message: string;
272
+ param?: string | null | undefined;
273
+ };
274
+ } | {
275
+ type: "error";
276
+ sequence_number: number;
277
+ message: string;
278
+ code?: string | null | undefined;
279
+ param?: string | null | undefined;
265
280
  } | {
266
281
  type: "response.output_text.delta";
267
282
  item_id: string;
@@ -297,6 +312,7 @@ declare const openaiResponsesChunkSchema: _ai_sdk_provider_utils.LazySchema<{
297
312
  };
298
313
  } | {
299
314
  type: "response.failed";
315
+ sequence_number: number;
300
316
  response: {
301
317
  error?: {
302
318
  message: string;
@@ -704,15 +720,6 @@ declare const openaiResponsesChunkSchema: _ai_sdk_provider_utils.LazySchema<{
704
720
  item_id: string;
705
721
  output_index: number;
706
722
  diff: string;
707
- } | {
708
- type: "error";
709
- sequence_number: number;
710
- error: {
711
- type: string;
712
- code: string;
713
- message: string;
714
- param?: string | null | undefined;
715
- };
716
723
  }>;
717
724
  type OpenAIResponsesChunk = InferSchema<typeof openaiResponsesChunkSchema>;
718
725
  type OpenAIResponsesLogprobs = NonNullable<(OpenAIResponsesChunk & {