summaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authorAiden Cline <[email protected]>2025-10-27 14:03:30 -0500
committerAiden Cline <[email protected]>2025-10-27 14:03:42 -0500
commit0af450575647fc906f017b0065fe3aca227c369f (patch)
treea6700f47810ddfcb372d2d999c5cf9ea78f99c9f
parenta606e1d2ec9d634f9b8468e2f6c0ce4259d5afa0 (diff)
downloadopencode-0af450575647fc906f017b0065fe3aca227c369f.tar.gz
opencode-0af450575647fc906f017b0065fe3aca227c369f.zip
fix: litellm error tool= param must be specified
-rw-r--r--packages/opencode/src/session/compaction.ts1
1 files changed, 1 insertions, 0 deletions
diff --git a/packages/opencode/src/session/compaction.ts b/packages/opencode/src/session/compaction.ts
index d9ead5791..76313453f 100644
--- a/packages/opencode/src/session/compaction.ts
+++ b/packages/opencode/src/session/compaction.ts
@@ -155,6 +155,7 @@ export namespace SessionCompaction {
error,
})
},
+ tools: model.info.tool_call ? {} : undefined,
messages: [
...system.map(
(x): ModelMessage => ({