@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/dist/index.mjs CHANGED
@@ -2567,6 +2567,12 @@ async function convertToOpenAIResponsesInput({
2567
2567
  input.push(...compactionInput);
2568
2568
  }
2569
2569
  for (const { role, content } of prompt) {
2570
+ console.log("CALDEBUG [convertToOpenAIResponsesInput] Processing message:", {
2571
+ role,
2572
+ isString: typeof content === "string",
2573
+ partsCount: typeof content === "string" ? 0 : content.length,
2574
+ partTypes: typeof content === "string" ? [] : content.map((p) => p.type)
2575
+ });
2570
2576
  switch (role) {
2571
2577
  case "system": {
2572
2578
  switch (systemMessageMode) {
@@ -2940,6 +2946,15 @@ async function convertToOpenAIResponsesInput({
2940
2946
  }
2941
2947
  }
2942
2948
  }
2949
+ console.log("CALDEBUG [convertToOpenAIResponsesInput] Final input:", {
2950
+ inputLength: input.length,
2951
+ inputTypes: input.map((item) => item.type || item.role),
2952
+ hasItemReferences: input.some((item) => item.type === "item_reference"),
2953
+ itemReferences: input.filter((item) => item.type === "item_reference").map((item) => ({
2954
+ type: item.type,
2955
+ id: typeof item.id === "string" ? item.id.substring(0, 20) + "..." : item.id
2956
+ }))
2957
+ });
2943
2958
  return { input, warnings };
2944
2959
  }
2945
2960
  var openaiResponsesReasoningProviderOptionsSchema = z18.object({
@@ -5893,7 +5908,7 @@ var OpenAITranscriptionModel = class {
5893
5908
  };
5894
5909
 
5895
5910
  // src/version.ts
5896
- var VERSION = true ? "3.0.24" : "0.0.0-test";
5911
+ var VERSION = true ? "3.0.25" : "0.0.0-test";
5897
5912
 
5898
5913
  // src/openai-provider.ts
5899
5914
  function createOpenAI(options = {}) {