@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/CHANGELOG.md CHANGED
@@ -1,5 +1,16 @@
1
1
  # @ai-sdk/openai
2
2
 
3
+ ## 4.0.74
4
+
5
+ ### Patch Changes
6
+
7
+ - 4cf5a99: fix(openai): classify Responses stream errors with null codes
8
+ - 771e74b: chore: enable dead code lint rules
9
+ - Updated dependencies [fe07867]
10
+ - Updated dependencies [a4b0940]
11
+ - Updated dependencies [771e74b]
12
+ - @ai-sdk/provider-utils@5.0.47
13
+
3
14
  ## 4.0.73
4
15
 
5
16
  ### Patch Changes
package/dist/index.d.ts CHANGED
@@ -226,8 +226,8 @@ declare const openaiResponsesChunkSchema: _ai_sdk_provider_utils.LazySchema<{
226
226
  sequence_number: number;
227
227
  error: {
228
228
  type: string;
229
- code: string;
230
229
  message: string;
230
+ code?: string | null | undefined;
231
231
  param?: string | null | undefined;
232
232
  };
233
233
  } | {
package/dist/index.js CHANGED
@@ -3941,7 +3941,7 @@ var openaiResponsesNestedErrorChunkSchema = z25.object({
3941
3941
  sequence_number: z25.number(),
3942
3942
  error: z25.object({
3943
3943
  type: z25.string(),
3944
- code: z25.string(),
3944
+ code: z25.string().nullish(),
3945
3945
  message: z25.string(),
3946
3946
  param: z25.string().nullish()
3947
3947
  })
@@ -6929,7 +6929,6 @@ function resolveAsyncToolOption({
6929
6929
  feature: `async tool calling for "${toolName}"`,
6930
6930
  details: "Async tool calling is only supported by GPT-6 and later models."
6931
6931
  });
6932
- return void 0;
6933
6932
  }
6934
6933
  function mapShellEnvironment(environment) {
6935
6934
  if (environment.type === "containerReference") {
@@ -8294,7 +8293,7 @@ var OpenAIResponsesLanguageModel = class _OpenAIResponsesLanguageModel {
8294
8293
  } else if (value.item.type === "shell_call_output") {
8295
8294
  } else if (value.item.type === "message") {
8296
8295
  activeOutputItemIds[value.output_index] = value.item.id;
8297
- ongoingAnnotations.splice(0, ongoingAnnotations.length);
8296
+ ongoingAnnotations.splice(0);
8298
8297
  activeMessagePhase = (_c2 = value.item.phase) != null ? _c2 : void 0;
8299
8298
  controller.enqueue({
8300
8299
  type: "text-start",
@@ -12024,7 +12023,7 @@ var OpenAISkills = class {
12024
12023
  };
12025
12024
 
12026
12025
  // src/version.ts
12027
- var VERSION = true ? "4.0.73" : "0.0.0-test";
12026
+ var VERSION = true ? "4.0.74" : "0.0.0-test";
12028
12027
 
12029
12028
  // src/openai-provider.ts
12030
12029
  function createOpenAI(options = {}) {