@ai-sdk/openai 3.0.112 → 3.0.113

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,11 @@
1
1
  # @ai-sdk/openai
2
2
 
3
+ ## 3.0.113
4
+
5
+ ### Patch Changes
6
+
7
+ - 90757ce: fix(openai): report apply patch responses with a tool-calls finish reason
8
+
3
9
  ## 3.0.112
4
10
 
5
11
  ### Patch Changes
package/dist/index.js CHANGED
@@ -6563,6 +6563,7 @@ var OpenAIResponsesLanguageModel = class {
6563
6563
  break;
6564
6564
  }
6565
6565
  case "apply_patch_call": {
6566
+ hasFunctionCall = true;
6566
6567
  content.push({
6567
6568
  type: "tool-call",
6568
6569
  toolCallId: part.call_id,
@@ -7209,6 +7210,7 @@ var OpenAIResponsesLanguageModel = class {
7209
7210
  toolCall.applyPatch.endEmitted = true;
7210
7211
  }
7211
7212
  if (toolCall && value.item.status === "completed") {
7213
+ hasFunctionCall = true;
7212
7214
  controller.enqueue({
7213
7215
  type: "tool-call",
7214
7216
  toolCallId: toolCall.toolCallId,
@@ -8108,7 +8110,7 @@ var OpenAITranscriptionModel = class {
8108
8110
  };
8109
8111
 
8110
8112
  // src/version.ts
8111
- var VERSION = true ? "3.0.112" : "0.0.0-test";
8113
+ var VERSION = true ? "3.0.113" : "0.0.0-test";
8112
8114
 
8113
8115
  // src/openai-provider.ts
8114
8116
  function createOpenAI(options = {}) {