@oh-my-pi/pi-agent-core 15.1.6 → 15.1.8
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/package.json +4 -4
- package/src/compaction/openai.ts +2 -1
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"type": "module",
|
|
3
3
|
"name": "@oh-my-pi/pi-agent-core",
|
|
4
|
-
"version": "15.1.
|
|
4
|
+
"version": "15.1.8",
|
|
5
5
|
"description": "General-purpose agent with transport abstraction, state management, and attachment support",
|
|
6
6
|
"homepage": "https://omp.sh",
|
|
7
7
|
"author": "Can Boluk",
|
|
@@ -35,9 +35,9 @@
|
|
|
35
35
|
"fmt": "biome format --write ."
|
|
36
36
|
},
|
|
37
37
|
"dependencies": {
|
|
38
|
-
"@oh-my-pi/pi-ai": "15.1.
|
|
39
|
-
"@oh-my-pi/pi-natives": "15.1.
|
|
40
|
-
"@oh-my-pi/pi-utils": "15.1.
|
|
38
|
+
"@oh-my-pi/pi-ai": "15.1.8",
|
|
39
|
+
"@oh-my-pi/pi-natives": "15.1.8",
|
|
40
|
+
"@oh-my-pi/pi-utils": "15.1.8",
|
|
41
41
|
"@opentelemetry/api": "^1.9.0"
|
|
42
42
|
},
|
|
43
43
|
"devDependencies": {
|
package/src/compaction/openai.ts
CHANGED
|
@@ -412,10 +412,11 @@ export function buildOpenAiNativeHistory(
|
|
|
412
412
|
.map(block => block.text)
|
|
413
413
|
.join("\n");
|
|
414
414
|
const hasImages = message.content.some(block => block.type === "image");
|
|
415
|
+
const outputText = textOutput.length > 0 ? textOutput : hasImages ? "(see attached image)" : "";
|
|
415
416
|
input.push({
|
|
416
417
|
type: customCallIds.has(normalized.callId) ? "custom_tool_call_output" : "function_call_output",
|
|
417
418
|
call_id: normalized.callId,
|
|
418
|
-
output:
|
|
419
|
+
output: outputText.toWellFormed(),
|
|
419
420
|
});
|
|
420
421
|
|
|
421
422
|
if (hasImages && model.input.includes("image")) {
|