@ai-sdk/openai 3.0.0-beta.68 → 3.0.0-beta.69

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
@@ -4223,8 +4223,21 @@ var OpenAIResponsesLanguageModel = class {
4223
4223
  }
4224
4224
  });
4225
4225
  }
4226
- } else if (isResponseOutputItemDoneChunk(value) && value.item.type !== "message") {
4227
- if (value.item.type === "function_call") {
4226
+ } else if (isResponseOutputItemDoneChunk(value)) {
4227
+ if (value.item.type === "message") {
4228
+ controller.enqueue({
4229
+ type: "text-end",
4230
+ id: value.item.id,
4231
+ providerMetadata: {
4232
+ [providerKey]: {
4233
+ itemId: value.item.id,
4234
+ ...ongoingAnnotations.length > 0 && {
4235
+ annotations: ongoingAnnotations
4236
+ }
4237
+ }
4238
+ }
4239
+ });
4240
+ } else if (value.item.type === "function_call") {
4228
4241
  ongoingToolCalls[value.output_index] = void 0;
4229
4242
  hasFunctionCall = true;
4230
4243
  controller.enqueue({
@@ -4593,19 +4606,6 @@ var OpenAIResponsesLanguageModel = class {
4593
4606
  }
4594
4607
  });
4595
4608
  }
4596
- } else if (isResponseOutputItemDoneChunk(value) && value.item.type === "message") {
4597
- controller.enqueue({
4598
- type: "text-end",
4599
- id: value.item.id,
4600
- providerMetadata: {
4601
- [providerKey]: {
4602
- itemId: value.item.id,
4603
- ...ongoingAnnotations.length > 0 && {
4604
- annotations: ongoingAnnotations
4605
- }
4606
- }
4607
- }
4608
- });
4609
4609
  } else if (isErrorChunk(value)) {
4610
4610
  controller.enqueue({ type: "error", error: value });
4611
4611
  }
@@ -5064,7 +5064,7 @@ var OpenAITranscriptionModel = class {
5064
5064
  };
5065
5065
 
5066
5066
  // src/version.ts
5067
- var VERSION = true ? "3.0.0-beta.68" : "0.0.0-test";
5067
+ var VERSION = true ? "3.0.0-beta.69" : "0.0.0-test";
5068
5068
 
5069
5069
  // src/openai-provider.ts
5070
5070
  function createOpenAI(options = {}) {