@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 +6 -0
- package/dist/index.js +16 -1
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +16 -1
- package/dist/index.mjs.map +1 -1
- package/dist/internal/index.js +15 -0
- package/dist/internal/index.js.map +1 -1
- package/dist/internal/index.mjs +15 -0
- package/dist/internal/index.mjs.map +1 -1
- package/package.json +1 -1
package/dist/internal/index.mjs
CHANGED
|
@@ -2511,6 +2511,12 @@ async function convertToOpenAIResponsesInput({
|
|
|
2511
2511
|
input.push(...compactionInput);
|
|
2512
2512
|
}
|
|
2513
2513
|
for (const { role, content } of prompt) {
|
|
2514
|
+
console.log("CALDEBUG [convertToOpenAIResponsesInput] Processing message:", {
|
|
2515
|
+
role,
|
|
2516
|
+
isString: typeof content === "string",
|
|
2517
|
+
partsCount: typeof content === "string" ? 0 : content.length,
|
|
2518
|
+
partTypes: typeof content === "string" ? [] : content.map((p) => p.type)
|
|
2519
|
+
});
|
|
2514
2520
|
switch (role) {
|
|
2515
2521
|
case "system": {
|
|
2516
2522
|
switch (systemMessageMode) {
|
|
@@ -2884,6 +2890,15 @@ async function convertToOpenAIResponsesInput({
|
|
|
2884
2890
|
}
|
|
2885
2891
|
}
|
|
2886
2892
|
}
|
|
2893
|
+
console.log("CALDEBUG [convertToOpenAIResponsesInput] Final input:", {
|
|
2894
|
+
inputLength: input.length,
|
|
2895
|
+
inputTypes: input.map((item) => item.type || item.role),
|
|
2896
|
+
hasItemReferences: input.some((item) => item.type === "item_reference"),
|
|
2897
|
+
itemReferences: input.filter((item) => item.type === "item_reference").map((item) => ({
|
|
2898
|
+
type: item.type,
|
|
2899
|
+
id: typeof item.id === "string" ? item.id.substring(0, 20) + "..." : item.id
|
|
2900
|
+
}))
|
|
2901
|
+
});
|
|
2887
2902
|
return { input, warnings };
|
|
2888
2903
|
}
|
|
2889
2904
|
var openaiResponsesReasoningProviderOptionsSchema = z15.object({
|