@ai-sdk/openai 2.0.99 → 2.0.100

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
@@ -2211,7 +2211,7 @@ async function convertToOpenAIResponsesInput({
2211
2211
  hasLocalShellTool = false
2212
2212
  }) {
2213
2213
  var _a, _b, _c, _d, _e, _f;
2214
- const input = [];
2214
+ let input = [];
2215
2215
  const warnings = [];
2216
2216
  for (const { role, content } of prompt) {
2217
2217
  switch (role) {
@@ -2473,6 +2473,17 @@ async function convertToOpenAIResponsesInput({
2473
2473
  }
2474
2474
  }
2475
2475
  }
2476
+ if (!store && input.some(
2477
+ (item) => "type" in item && item.type === "reasoning" && item.encrypted_content == null
2478
+ )) {
2479
+ warnings.push({
2480
+ type: "other",
2481
+ message: "Reasoning parts without encrypted content are not supported when store is false. Skipping reasoning parts."
2482
+ });
2483
+ input = input.filter(
2484
+ (item) => !("type" in item) || item.type !== "reasoning" || item.encrypted_content != null
2485
+ );
2486
+ }
2476
2487
  return { input, warnings };
2477
2488
  }
2478
2489
  var openaiResponsesReasoningProviderOptionsSchema = z15.object({
@@ -4716,7 +4727,7 @@ var OpenAITranscriptionModel = class {
4716
4727
  };
4717
4728
 
4718
4729
  // src/version.ts
4719
- var VERSION = true ? "2.0.99" : "0.0.0-test";
4730
+ var VERSION = true ? "2.0.100" : "0.0.0-test";
4720
4731
 
4721
4732
  // src/openai-provider.ts
4722
4733
  function createOpenAI(options = {}) {