Fix Qwen session tool calls and expose thinking compatibility
Publish documentation / publish (push) Successful in 30s

This commit is contained in:
Codex
2026-09-21 16:23:51 +02:00
parent efd7d788d9
commit 84084bba37
10 changed files with 220 additions and 4 deletions
@@ -0,0 +1,17 @@
import type { ExtensionAPI } from "@earendil-works/pi-coding-agent";
// Loaded explicitly by PiEvidenceRestructurer. Keep outside .pi/extensions:
// JSON-only output prevents interactive sessions from emitting native tool calls.
export default function (pi: ExtensionAPI) {
pi.on("before_provider_request", (event) => {
if (typeof event.payload !== "object" || event.payload === null) {
return undefined;
}
return {
...event.payload,
temperature: 0,
response_format: { type: "json_object" },
};
});
}