@openhoo/hoopilot 2.1.10 → 2.1.11
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/cli.js +6 -8
- package/dist/cli.js.map +1 -1
- package/dist/index.js +6 -8
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -1062,15 +1062,10 @@ function responsesCompactionRequestBody(request) {
|
|
|
1062
1062
|
return JSON.stringify(
|
|
1063
1063
|
removeUndefined({
|
|
1064
1064
|
...request,
|
|
1065
|
-
input:
|
|
1066
|
-
|
|
1067
|
-
{
|
|
1068
|
-
content: [{ text: COMPACTION_SUMMARIZATION_PROMPT, type: "input_text" }],
|
|
1069
|
-
role: "user",
|
|
1070
|
-
type: "message"
|
|
1071
|
-
}
|
|
1072
|
-
],
|
|
1065
|
+
input: compactionInputItemsForCopilot(request.input),
|
|
1066
|
+
instructions: compactionInstructionsForCopilot(request.instructions),
|
|
1073
1067
|
parallel_tool_calls: false,
|
|
1068
|
+
reasoning: void 0,
|
|
1074
1069
|
stream: false,
|
|
1075
1070
|
tool_choice: "none",
|
|
1076
1071
|
tools: []
|
|
@@ -1401,6 +1396,9 @@ function compactionInputItemsForCopilot(input) {
|
|
|
1401
1396
|
}
|
|
1402
1397
|
] : [];
|
|
1403
1398
|
}
|
|
1399
|
+
function compactionInstructionsForCopilot(instructions) {
|
|
1400
|
+
return contentToText(instructions).trim() ? instructions : COMPACTION_SUMMARIZATION_PROMPT;
|
|
1401
|
+
}
|
|
1404
1402
|
function responseInputItems(input) {
|
|
1405
1403
|
return Array.isArray(input) ? input : [];
|
|
1406
1404
|
}
|