@ai-sdk/openai 3.0.101 → 3.0.104

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.
package/CHANGELOG.md CHANGED
@@ -1,5 +1,26 @@
1
1
  # @ai-sdk/openai
2
2
 
3
+ ## 3.0.104
4
+
5
+ ### Patch Changes
6
+
7
+ - 426c9b3: Normalize non-object replayed Chat Completions tool arguments to empty objects.
8
+ - 34d045d: Fix Responses history serialization for regular functions named `tool_search`.
9
+
10
+ ## 3.0.103
11
+
12
+ ### Patch Changes
13
+
14
+ - 9a521b9: Split OpenAI and Azure OpenAI embedding requests by a conservative UTF-8 byte budget derived from their aggregate token limit, in addition to input count limits.
15
+ - Updated dependencies [9a521b9]
16
+ - @ai-sdk/provider-utils@4.0.49
17
+
18
+ ## 3.0.102
19
+
20
+ ### Patch Changes
21
+
22
+ - 087d7e2: Signal schema-invalid known Responses stream events and preserve the error finish reason.
23
+
3
24
  ## 3.0.101
4
25
 
5
26
  ### Patch Changes
package/dist/index.d.mts CHANGED
@@ -314,6 +314,18 @@ declare const openaiResponsesChunkSchema: _ai_sdk_provider_utils.LazySchema<{
314
314
  type: "response.output_item.added";
315
315
  output_index: number;
316
316
  item: {
317
+ type: "local_shell_call";
318
+ id: string;
319
+ call_id: string;
320
+ action: {
321
+ type: "exec";
322
+ command: string[];
323
+ timeout_ms?: number | undefined;
324
+ user?: string | undefined;
325
+ working_directory?: string | undefined;
326
+ env?: Record<string, string> | undefined;
327
+ };
328
+ } | {
317
329
  type: "message";
318
330
  id: string;
319
331
  phase?: "commentary" | "final_answer" | null | undefined;
@@ -431,6 +443,18 @@ declare const openaiResponsesChunkSchema: _ai_sdk_provider_utils.LazySchema<{
431
443
  type: "response.output_item.done";
432
444
  output_index: number;
433
445
  item: {
446
+ type: "local_shell_call";
447
+ id: string;
448
+ call_id: string;
449
+ action: {
450
+ type: "exec";
451
+ command: string[];
452
+ timeout_ms?: number | undefined;
453
+ user?: string | undefined;
454
+ working_directory?: string | undefined;
455
+ env?: Record<string, string> | undefined;
456
+ };
457
+ } | {
434
458
  type: "message";
435
459
  id: string;
436
460
  phase?: "commentary" | "final_answer" | null | undefined;
@@ -503,18 +527,6 @@ declare const openaiResponsesChunkSchema: _ai_sdk_provider_utils.LazySchema<{
503
527
  score: number;
504
528
  text: string;
505
529
  }[] | null | undefined;
506
- } | {
507
- type: "local_shell_call";
508
- id: string;
509
- call_id: string;
510
- action: {
511
- type: "exec";
512
- command: string[];
513
- timeout_ms?: number | undefined;
514
- user?: string | undefined;
515
- working_directory?: string | undefined;
516
- env?: Record<string, string> | undefined;
517
- };
518
530
  } | {
519
531
  type: "computer_call";
520
532
  id: string;
@@ -617,6 +629,11 @@ declare const openaiResponsesChunkSchema: _ai_sdk_provider_utils.LazySchema<{
617
629
  item_id: string;
618
630
  output_index: number;
619
631
  delta: string;
632
+ } | {
633
+ type: "response.function_call_arguments.done";
634
+ item_id: string;
635
+ output_index: number;
636
+ arguments: string;
620
637
  } | {
621
638
  type: "response.custom_tool_call_input.delta";
622
639
  item_id: string;
package/dist/index.d.ts CHANGED
@@ -314,6 +314,18 @@ declare const openaiResponsesChunkSchema: _ai_sdk_provider_utils.LazySchema<{
314
314
  type: "response.output_item.added";
315
315
  output_index: number;
316
316
  item: {
317
+ type: "local_shell_call";
318
+ id: string;
319
+ call_id: string;
320
+ action: {
321
+ type: "exec";
322
+ command: string[];
323
+ timeout_ms?: number | undefined;
324
+ user?: string | undefined;
325
+ working_directory?: string | undefined;
326
+ env?: Record<string, string> | undefined;
327
+ };
328
+ } | {
317
329
  type: "message";
318
330
  id: string;
319
331
  phase?: "commentary" | "final_answer" | null | undefined;
@@ -431,6 +443,18 @@ declare const openaiResponsesChunkSchema: _ai_sdk_provider_utils.LazySchema<{
431
443
  type: "response.output_item.done";
432
444
  output_index: number;
433
445
  item: {
446
+ type: "local_shell_call";
447
+ id: string;
448
+ call_id: string;
449
+ action: {
450
+ type: "exec";
451
+ command: string[];
452
+ timeout_ms?: number | undefined;
453
+ user?: string | undefined;
454
+ working_directory?: string | undefined;
455
+ env?: Record<string, string> | undefined;
456
+ };
457
+ } | {
434
458
  type: "message";
435
459
  id: string;
436
460
  phase?: "commentary" | "final_answer" | null | undefined;
@@ -503,18 +527,6 @@ declare const openaiResponsesChunkSchema: _ai_sdk_provider_utils.LazySchema<{
503
527
  score: number;
504
528
  text: string;
505
529
  }[] | null | undefined;
506
- } | {
507
- type: "local_shell_call";
508
- id: string;
509
- call_id: string;
510
- action: {
511
- type: "exec";
512
- command: string[];
513
- timeout_ms?: number | undefined;
514
- user?: string | undefined;
515
- working_directory?: string | undefined;
516
- env?: Record<string, string> | undefined;
517
- };
518
530
  } | {
519
531
  type: "computer_call";
520
532
  id: string;
@@ -617,6 +629,11 @@ declare const openaiResponsesChunkSchema: _ai_sdk_provider_utils.LazySchema<{
617
629
  item_id: string;
618
630
  output_index: number;
619
631
  delta: string;
632
+ } | {
633
+ type: "response.function_call_arguments.done";
634
+ item_id: string;
635
+ output_index: number;
636
+ arguments: string;
620
637
  } | {
621
638
  type: "response.custom_tool_call_input.delta";
622
639
  item_id: string;