@zenning/openai 3.0.28 → 3.0.29

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,14 @@
1
1
  # @ai-sdk/openai
2
2
 
3
+ ## 3.0.29
4
+
5
+ ### Patch Changes
6
+
7
+ - compaction chunks
8
+ - Updated dependencies
9
+ - @zenning/provider@3.0.6
10
+ - @zenning/provider-utils@4.0.8
11
+
3
12
  ## 3.0.28
4
13
 
5
14
  ### Patch Changes
package/dist/index.js CHANGED
@@ -3198,6 +3198,11 @@ var openaiResponsesChunkSchema = (0, import_provider_utils24.lazySchema)(
3198
3198
  action: import_v419.z.object({
3199
3199
  commands: import_v419.z.array(import_v419.z.string())
3200
3200
  })
3201
+ }),
3202
+ import_v419.z.object({
3203
+ type: import_v419.z.literal("compaction"),
3204
+ id: import_v419.z.string(),
3205
+ encrypted_content: import_v419.z.string()
3201
3206
  })
3202
3207
  ])
3203
3208
  }),
@@ -5160,6 +5165,15 @@ var OpenAIResponsesLanguageModel = class {
5160
5165
  });
5161
5166
  }
5162
5167
  delete activeReasoning[value.item.id];
5168
+ } else if (value.item.type === "compaction") {
5169
+ controller.enqueue({
5170
+ type: "compaction",
5171
+ id: value.item.id,
5172
+ encrypted_content: value.item.encrypted_content,
5173
+ providerMetadata: {
5174
+ [providerOptionsName]: { itemId: value.item.id }
5175
+ }
5176
+ });
5163
5177
  }
5164
5178
  } else if (isResponseFunctionCallArgumentsDeltaChunk(value)) {
5165
5179
  const toolCall = ongoingToolCalls[value.output_index];
@@ -5855,7 +5869,7 @@ var OpenAITranscriptionModel = class {
5855
5869
  };
5856
5870
 
5857
5871
  // src/version.ts
5858
- var VERSION = true ? "3.0.28" : "0.0.0-test";
5872
+ var VERSION = true ? "3.0.29" : "0.0.0-test";
5859
5873
 
5860
5874
  // src/openai-provider.ts
5861
5875
  function createOpenAI(options = {}) {