@ai-sdk/openai 3.0.67 → 3.0.68

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@ai-sdk/openai",
3
- "version": "3.0.67",
3
+ "version": "3.0.68",
4
4
  "license": "Apache-2.0",
5
5
  "sideEffects": false,
6
6
  "main": "./dist/index.js",
@@ -223,6 +223,18 @@ export async function convertToOpenAIResponsesInput({
223
223
  | string
224
224
  | undefined;
225
225
 
226
+ const namespace = (part.providerOptions?.[providerOptionsName]
227
+ ?.namespace ??
228
+ (
229
+ part as {
230
+ providerMetadata?: {
231
+ [providerOptionsName]?: { namespace?: string };
232
+ };
233
+ }
234
+ ).providerMetadata?.[providerOptionsName]?.namespace) as
235
+ | string
236
+ | undefined;
237
+
226
238
  if (hasConversation && id != null) {
227
239
  break;
228
240
  }
@@ -355,6 +367,7 @@ export async function convertToOpenAIResponsesInput({
355
367
  name: resolvedToolName,
356
368
  arguments: serializeToolCallArguments(part.input),
357
369
  id,
370
+ ...(namespace != null && { namespace }),
358
371
  });
359
372
  break;
360
373
  }
@@ -99,6 +99,7 @@ export type OpenAIResponsesFunctionCall = {
99
99
  name: string;
100
100
  arguments: string;
101
101
  id?: string;
102
+ namespace?: string;
102
103
  };
103
104
 
104
105
  export type OpenAIResponsesFunctionCallOutput = {