@ai-sdk/openai 2.0.72 → 2.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/dist/index.mjs CHANGED
@@ -3851,8 +3851,21 @@ var OpenAIResponsesLanguageModel = class {
3851
3851
  }
3852
3852
  });
3853
3853
  }
3854
- } else if (isResponseOutputItemDoneChunk(value) && value.item.type !== "message") {
3855
- if (value.item.type === "function_call") {
3854
+ } else if (isResponseOutputItemDoneChunk(value)) {
3855
+ if (value.item.type === "message") {
3856
+ controller.enqueue({
3857
+ type: "text-end",
3858
+ id: value.item.id,
3859
+ providerMetadata: {
3860
+ openai: {
3861
+ itemId: value.item.id,
3862
+ ...ongoingAnnotations.length > 0 && {
3863
+ annotations: ongoingAnnotations
3864
+ }
3865
+ }
3866
+ }
3867
+ });
3868
+ } else if (value.item.type === "function_call") {
3856
3869
  ongoingToolCalls[value.output_index] = void 0;
3857
3870
  hasFunctionCall = true;
3858
3871
  controller.enqueue({
@@ -4133,19 +4146,6 @@ var OpenAIResponsesLanguageModel = class {
4133
4146
  } : {}
4134
4147
  });
4135
4148
  }
4136
- } else if (isResponseOutputItemDoneChunk(value) && value.item.type === "message") {
4137
- controller.enqueue({
4138
- type: "text-end",
4139
- id: value.item.id,
4140
- providerMetadata: {
4141
- openai: {
4142
- itemId: value.item.id,
4143
- ...ongoingAnnotations.length > 0 && {
4144
- annotations: ongoingAnnotations
4145
- }
4146
- }
4147
- }
4148
- });
4149
4149
  } else if (isErrorChunk(value)) {
4150
4150
  controller.enqueue({ type: "error", error: value });
4151
4151
  }
@@ -4621,7 +4621,7 @@ var OpenAITranscriptionModel = class {
4621
4621
  };
4622
4622
 
4623
4623
  // src/version.ts
4624
- var VERSION = true ? "2.0.72" : "0.0.0-test";
4624
+ var VERSION = true ? "2.0.74" : "0.0.0-test";
4625
4625
 
4626
4626
  // src/openai-provider.ts
4627
4627
  function createOpenAI(options = {}) {