Skip to content

Commit 0af4505

Browse files
committed
fix: litellm error tool= param must be specified
1 parent a606e1d commit 0af4505

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

packages/opencode/src/session/compaction.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -155,6 +155,7 @@ export namespace SessionCompaction {
155155
error,
156156
})
157157
},
158+
tools: model.info.tool_call ? {} : undefined,
158159
messages: [
159160
...system.map(
160161
(x): ModelMessage => ({

0 commit comments

Comments
 (0)