@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.
@@ -2490,6 +2490,12 @@ async function convertToOpenAIResponsesInput({
2490
2490
  input.push(...compactionInput);
2491
2491
  }
2492
2492
  for (const { role, content } of prompt) {
2493
+ console.log("CALDEBUG [convertToOpenAIResponsesInput] Processing message:", {
2494
+ role,
2495
+ isString: typeof content === "string",
2496
+ partsCount: typeof content === "string" ? 0 : content.length,
2497
+ partTypes: typeof content === "string" ? [] : content.map((p) => p.type)
2498
+ });
2493
2499
  switch (role) {
2494
2500
  case "system": {
2495
2501
  switch (systemMessageMode) {
@@ -2863,6 +2869,15 @@ async function convertToOpenAIResponsesInput({
2863
2869
  }
2864
2870
  }
2865
2871
  }
2872
+ console.log("CALDEBUG [convertToOpenAIResponsesInput] Final input:", {
2873
+ inputLength: input.length,
2874
+ inputTypes: input.map((item) => item.type || item.role),
2875
+ hasItemReferences: input.some((item) => item.type === "item_reference"),
2876
+ itemReferences: input.filter((item) => item.type === "item_reference").map((item) => ({
2877
+ type: item.type,
2878
+ id: typeof item.id === "string" ? item.id.substring(0, 20) + "..." : item.id
2879
+ }))
2880
+ });
2866
2881
  return { input, warnings };
2867
2882
  }
2868
2883
  var openaiResponsesReasoningProviderOptionsSchema = import_v415.z.object({