Files
Moltbot/patches/@mariozechner__pi-ai@0.54.0.patch
admin b718fa8133 chore: reapply local customizations after upstream merge
- Reapply cron announce fix for non-default agents (expectsCompletionMessage)
- Update pnpm patch from pi-ai 0.53.0 to 0.54.0
- Fix upstream TS bug: shadow variable in maybeMarkAuthProfileFailure

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
2026-02-22 10:12:53 -05:00

14 lines
736 B
Diff

diff --git a/dist/providers/openai-completions.js b/dist/providers/openai-completions.js
index 8c974317b88de3103d664c321e79bd6e6aa0f169..a7fab0dbd38256e840a91440c182d24c3108923d 100644
--- a/dist/providers/openai-completions.js
+++ b/dist/providers/openai-completions.js
@@ -335,6 +335,8 @@ function buildParams(model, context, options) {
}
if (context.tools) {
params.tools = convertTools(context.tools, compat);
+ // Disable parallel tool calls for models that don't support them (e.g. Kimi K2.5)
+ params.parallel_tool_calls = false;
}
else if (hasToolHistory(context.messages)) {
// Anthropic (via LiteLLM/proxy) requires tools param when conversation has tool_calls/tool_results