diff --git a/index.ts b/index.ts index 889d11f..4bef4ad 100644 --- a/index.ts +++ b/index.ts @@ -643,7 +643,7 @@ export default function (pi: ExtensionAPI) { if (!text) return undefined; return { type: "thinking", text }; } - if (candidate.type === "tool_call" || candidate.type === "tool_use") { + if (candidate.type === "tool_call" || candidate.type === "tool_use" || candidate.type === "toolCall") { const name = typeof candidate.name === "string" ? candidate.name diff --git a/package-lock.json b/package-lock.json index 0e825a9..2077a79 100644 --- a/package-lock.json +++ b/package-lock.json @@ -1,12 +1,12 @@ { "name": "@llblab/pi-telegram", - "version": "0.2.0", + "version": "0.2.7", "lockfileVersion": 3, "requires": true, "packages": { "": { "name": "@llblab/pi-telegram", - "version": "0.2.0", + "version": "0.2.7", "license": "MIT", "peerDependencies": { "@mariozechner/pi-agent-core": "*",