@ai-sdk/openai 4.0.73 → 4.0.74

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": "4.0.73",
3
+ "version": "4.0.74",
4
4
  "type": "module",
5
5
  "license": "Apache-2.0",
6
6
  "sideEffects": false,
@@ -36,7 +36,7 @@
36
36
  },
37
37
  "dependencies": {
38
38
  "@ai-sdk/provider": "4.0.18",
39
- "@ai-sdk/provider-utils": "5.0.46"
39
+ "@ai-sdk/provider-utils": "5.0.47"
40
40
  },
41
41
  "devDependencies": {
42
42
  "@ai-sdk/test-server": "2.0.1",
@@ -769,7 +769,7 @@ const openaiResponsesNestedErrorChunkSchema = z.object({
769
769
  sequence_number: z.number(),
770
770
  error: z.object({
771
771
  type: z.string(),
772
- code: z.string(),
772
+ code: z.string().nullish(),
773
773
  message: z.string(),
774
774
  param: z.string().nullish(),
775
775
  }),
@@ -1806,7 +1806,7 @@ export class OpenAIResponsesLanguageModel implements LanguageModelV4 {
1806
1806
  // shell_call_output is handled in output_item.done
1807
1807
  } else if (value.item.type === 'message') {
1808
1808
  activeOutputItemIds[value.output_index] = value.item.id;
1809
- ongoingAnnotations.splice(0, ongoingAnnotations.length);
1809
+ ongoingAnnotations.splice(0);
1810
1810
  activeMessagePhase = value.item.phase ?? undefined;
1811
1811
  controller.enqueue({
1812
1812
  type: 'text-start',
@@ -686,7 +686,6 @@ function resolveAsyncToolOption({
686
686
  feature: `async tool calling for "${toolName}"`,
687
687
  details: 'Async tool calling is only supported by GPT-6 and later models.',
688
688
  });
689
- return undefined;
690
689
  }
691
690
 
692
691
  function mapShellEnvironment(environment: {