@zenning/openai 3.0.24 → 3.0.25

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.25
4
+
5
+ ### Patch Changes
6
+
7
+ - rgr
8
+
3
9
  ## 3.0.24
4
10
 
5
11
  ### Patch Changes
package/dist/index.js CHANGED
@@ -2499,6 +2499,12 @@ async function convertToOpenAIResponsesInput({
2499
2499
  input.push(...compactionInput);
2500
2500
  }
2501
2501
  for (const { role, content } of prompt) {
2502
+ console.log("CALDEBUG [convertToOpenAIResponsesInput] Processing message:", {
2503
+ role,
2504
+ isString: typeof content === "string",
2505
+ partsCount: typeof content === "string" ? 0 : content.length,
2506
+ partTypes: typeof content === "string" ? [] : content.map((p) => p.type)
2507
+ });
2502
2508
  switch (role) {
2503
2509
  case "system": {
2504
2510
  switch (systemMessageMode) {
@@ -2872,6 +2878,15 @@ async function convertToOpenAIResponsesInput({
2872
2878
  }
2873
2879
  }
2874
2880
  }
2881
+ console.log("CALDEBUG [convertToOpenAIResponsesInput] Final input:", {
2882
+ inputLength: input.length,
2883
+ inputTypes: input.map((item) => item.type || item.role),
2884
+ hasItemReferences: input.some((item) => item.type === "item_reference"),
2885
+ itemReferences: input.filter((item) => item.type === "item_reference").map((item) => ({
2886
+ type: item.type,
2887
+ id: typeof item.id === "string" ? item.id.substring(0, 20) + "..." : item.id
2888
+ }))
2889
+ });
2875
2890
  return { input, warnings };
2876
2891
  }
2877
2892
  var openaiResponsesReasoningProviderOptionsSchema = import_v418.z.object({
@@ -5811,7 +5826,7 @@ var OpenAITranscriptionModel = class {
5811
5826
  };
5812
5827
 
5813
5828
  // src/version.ts
5814
- var VERSION = true ? "3.0.24" : "0.0.0-test";
5829
+ var VERSION = true ? "3.0.25" : "0.0.0-test";
5815
5830
 
5816
5831
  // src/openai-provider.ts
5817
5832
  function createOpenAI(options = {}) {