@ai-sdk/openai 3.0.57 → 3.0.58

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/dist/index.mjs CHANGED
@@ -3544,7 +3544,8 @@ var openaiResponsesChunkSchema = lazySchema20(
3544
3544
  id: z22.string(),
3545
3545
  call_id: z22.string(),
3546
3546
  name: z22.string(),
3547
- arguments: z22.string()
3547
+ arguments: z22.string(),
3548
+ namespace: z22.string().nullish()
3548
3549
  }),
3549
3550
  z22.object({
3550
3551
  type: z22.literal("web_search_call"),
@@ -3686,7 +3687,8 @@ var openaiResponsesChunkSchema = lazySchema20(
3686
3687
  call_id: z22.string(),
3687
3688
  name: z22.string(),
3688
3689
  arguments: z22.string(),
3689
- status: z22.literal("completed")
3690
+ status: z22.literal("completed"),
3691
+ namespace: z22.string().nullish()
3690
3692
  }),
3691
3693
  z22.object({
3692
3694
  type: z22.literal("custom_tool_call"),
@@ -4146,7 +4148,8 @@ var openaiResponsesResponseSchema = lazySchema20(
4146
4148
  call_id: z22.string(),
4147
4149
  name: z22.string(),
4148
4150
  arguments: z22.string(),
4149
- id: z22.string()
4151
+ id: z22.string(),
4152
+ namespace: z22.string().nullish()
4150
4153
  }),
4151
4154
  z22.object({
4152
4155
  type: z22.literal("custom_tool_call"),
@@ -5335,7 +5338,8 @@ var OpenAIResponsesLanguageModel = class {
5335
5338
  input: part.arguments,
5336
5339
  providerMetadata: {
5337
5340
  [providerOptionsName]: {
5338
- itemId: part.id
5341
+ itemId: part.id,
5342
+ ...part.namespace != null && { namespace: part.namespace }
5339
5343
  }
5340
5344
  }
5341
5345
  });
@@ -5818,7 +5822,14 @@ var OpenAIResponsesLanguageModel = class {
5818
5822
  hasFunctionCall = true;
5819
5823
  controller.enqueue({
5820
5824
  type: "tool-input-end",
5821
- id: value.item.call_id
5825
+ id: value.item.call_id,
5826
+ ...value.item.namespace != null && {
5827
+ providerMetadata: {
5828
+ [providerOptionsName]: {
5829
+ namespace: value.item.namespace
5830
+ }
5831
+ }
5832
+ }
5822
5833
  });
5823
5834
  controller.enqueue({
5824
5835
  type: "tool-call",
@@ -5827,7 +5838,10 @@ var OpenAIResponsesLanguageModel = class {
5827
5838
  input: value.item.arguments,
5828
5839
  providerMetadata: {
5829
5840
  [providerOptionsName]: {
5830
- itemId: value.item.id
5841
+ itemId: value.item.id,
5842
+ ...value.item.namespace != null && {
5843
+ namespace: value.item.namespace
5844
+ }
5831
5845
  }
5832
5846
  }
5833
5847
  });
@@ -6859,7 +6873,7 @@ var OpenAITranscriptionModel = class {
6859
6873
  };
6860
6874
 
6861
6875
  // src/version.ts
6862
- var VERSION = true ? "3.0.57" : "0.0.0-test";
6876
+ var VERSION = true ? "3.0.58" : "0.0.0-test";
6863
6877
 
6864
6878
  // src/openai-provider.ts
6865
6879
  function createOpenAI(options = {}) {