@ai-sdk/openai 4.0.47 → 4.0.50

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,32 @@
1
1
  # @ai-sdk/openai
2
2
 
3
+ ## 4.0.50
4
+
5
+ ### Patch Changes
6
+
7
+ - e6a2992: Fix Responses history serialization for regular functions named `tool_search`.
8
+
9
+ ## 4.0.49
10
+
11
+ ### Patch Changes
12
+
13
+ - 2523403: Normalize non-object replayed Chat Completions tool arguments to empty objects.
14
+ - Updated dependencies [3e125ba]
15
+ - @ai-sdk/provider-utils@5.0.32
16
+
17
+ ## 4.0.48
18
+
19
+ ### Patch Changes
20
+
21
+ - a9782e1: fix: align batch result parsing, request counts, and lifecycle behavior across providers
22
+ - eee6200: Signal schema-invalid known Responses stream events and preserve the error finish reason.
23
+ - 35841f5: feat: normalize mid-stream provider error events across supported providers into public StreamProviderError instances and preserve provider-owned type, code, status, retry, and raw payload metadata
24
+ - d2f3353: 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.
25
+ - Updated dependencies [a9782e1]
26
+ - Updated dependencies [35841f5]
27
+ - Updated dependencies [d2f3353]
28
+ - @ai-sdk/provider-utils@5.0.31
29
+
3
30
  ## 4.0.47
4
31
 
5
32
  ### Patch Changes
package/dist/index.d.ts CHANGED
@@ -415,6 +415,18 @@ declare const openaiResponsesChunkSchema: _ai_sdk_provider_utils.LazySchema<{
415
415
  code?: string | null | undefined;
416
416
  message?: string | null | undefined;
417
417
  }[] | null | undefined;
418
+ } | {
419
+ type: "local_shell_call";
420
+ id: string;
421
+ call_id: string;
422
+ action: {
423
+ type: "exec";
424
+ command: string[];
425
+ timeout_ms?: number | undefined;
426
+ user?: string | undefined;
427
+ working_directory?: string | undefined;
428
+ env?: Record<string, string> | undefined;
429
+ };
418
430
  } | {
419
431
  type: "message";
420
432
  id: string;
@@ -642,6 +654,18 @@ declare const openaiResponsesChunkSchema: _ai_sdk_provider_utils.LazySchema<{
642
654
  code?: string | null | undefined;
643
655
  message?: string | null | undefined;
644
656
  }[] | null | undefined;
657
+ } | {
658
+ type: "local_shell_call";
659
+ id: string;
660
+ call_id: string;
661
+ action: {
662
+ type: "exec";
663
+ command: string[];
664
+ timeout_ms?: number | undefined;
665
+ user?: string | undefined;
666
+ working_directory?: string | undefined;
667
+ env?: Record<string, string> | undefined;
668
+ };
645
669
  } | {
646
670
  type: "program";
647
671
  id: string;
@@ -733,18 +757,6 @@ declare const openaiResponsesChunkSchema: _ai_sdk_provider_utils.LazySchema<{
733
757
  score: number;
734
758
  text: string;
735
759
  }[] | null | undefined;
736
- } | {
737
- type: "local_shell_call";
738
- id: string;
739
- call_id: string;
740
- action: {
741
- type: "exec";
742
- command: string[];
743
- timeout_ms?: number | undefined;
744
- user?: string | undefined;
745
- working_directory?: string | undefined;
746
- env?: Record<string, string> | undefined;
747
- };
748
760
  } | {
749
761
  type: "mcp_call";
750
762
  id: string;
@@ -847,6 +859,11 @@ declare const openaiResponsesChunkSchema: _ai_sdk_provider_utils.LazySchema<{
847
859
  item_id: string;
848
860
  output_index: number;
849
861
  delta: string;
862
+ } | {
863
+ type: "response.function_call_arguments.done";
864
+ item_id: string;
865
+ output_index: number;
866
+ arguments: string;
850
867
  } | {
851
868
  type: "response.custom_tool_call_input.delta";
852
869
  item_id: string;