@zenning/openai 3.0.18 → 3.0.19
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 +7 -1
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +7 -1
- package/dist/index.mjs.map +1 -1
- package/dist/internal/index.js +6 -0
- package/dist/internal/index.js.map +1 -1
- package/dist/internal/index.mjs +6 -0
- package/dist/internal/index.mjs.map +1 -1
- package/package.json +1 -1
package/dist/internal/index.mjs
CHANGED
|
@@ -2582,6 +2582,9 @@ async function convertToOpenAIResponsesInput({
|
|
|
2582
2582
|
input.push({ type: "item_reference", id });
|
|
2583
2583
|
break;
|
|
2584
2584
|
}
|
|
2585
|
+
if (store && id != null && previousResponseId) {
|
|
2586
|
+
break;
|
|
2587
|
+
}
|
|
2585
2588
|
input.push({
|
|
2586
2589
|
role: "assistant",
|
|
2587
2590
|
content: [{ type: "output_text", text: part.text }],
|
|
@@ -2601,6 +2604,9 @@ async function convertToOpenAIResponsesInput({
|
|
|
2601
2604
|
input.push({ type: "item_reference", id });
|
|
2602
2605
|
break;
|
|
2603
2606
|
}
|
|
2607
|
+
if (store && id != null && previousResponseId) {
|
|
2608
|
+
break;
|
|
2609
|
+
}
|
|
2604
2610
|
const resolvedToolName = toolNameMapping.toProviderToolName(
|
|
2605
2611
|
part.toolName
|
|
2606
2612
|
);
|