@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.
@@ -920,8 +920,8 @@ declare const openaiResponsesChunkSchema: _ai_sdk_provider_utils.LazySchema<{
920
920
  sequence_number: number;
921
921
  error: {
922
922
  type: string;
923
- code: string;
924
923
  message: string;
924
+ code?: string | null | undefined;
925
925
  param?: string | null | undefined;
926
926
  };
927
927
  } | {
@@ -5179,7 +5179,7 @@ var openaiResponsesNestedErrorChunkSchema = z20.object({
5179
5179
  sequence_number: z20.number(),
5180
5180
  error: z20.object({
5181
5181
  type: z20.string(),
5182
- code: z20.string(),
5182
+ code: z20.string().nullish(),
5183
5183
  message: z20.string(),
5184
5184
  param: z20.string().nullish()
5185
5185
  })
@@ -7223,7 +7223,6 @@ function resolveAsyncToolOption({
7223
7223
  feature: `async tool calling for "${toolName}"`,
7224
7224
  details: "Async tool calling is only supported by GPT-6 and later models."
7225
7225
  });
7226
- return void 0;
7227
7226
  }
7228
7227
  function mapShellEnvironment(environment) {
7229
7228
  if (environment.type === "containerReference") {
@@ -8588,7 +8587,7 @@ var OpenAIResponsesLanguageModel = class _OpenAIResponsesLanguageModel {
8588
8587
  } else if (value.item.type === "shell_call_output") {
8589
8588
  } else if (value.item.type === "message") {
8590
8589
  activeOutputItemIds[value.output_index] = value.item.id;
8591
- ongoingAnnotations.splice(0, ongoingAnnotations.length);
8590
+ ongoingAnnotations.splice(0);
8592
8591
  activeMessagePhase = (_c2 = value.item.phase) != null ? _c2 : void 0;
8593
8592
  controller.enqueue({
8594
8593
  type: "text-start",