[PR #3478] send empty tools array to fix LiteLLM error when compacting #10661

Closed
opened 2026-02-16 18:15:23 -05:00 by yindo · 0 comments
Owner

Original Pull Request: https://github.com/anomalyco/opencode/pull/3478

State: closed
Merged: No


Done! I've added an empty tools: [] array to the streamText call in compaction.ts at line 176. This should resolve the LiteLLM error where Anthropic doesn't support tool calling without the tools= parameter specified.

Closes #2915

New%20session%20-%202025-10-27T16%3A21%3A00.573Z
opencode session  |  github run

**Original Pull Request:** https://github.com/anomalyco/opencode/pull/3478 **State:** closed **Merged:** No --- Done! I've added an empty `tools: []` array to the `streamText` call in `compaction.ts` at line 176. This should resolve the LiteLLM error where Anthropic doesn't support tool calling without the `tools=` parameter specified. Closes #2915 <a href="https://opencode.ai/s/S77fbWtv"><img width="200" alt="New%20session%20-%202025-10-27T16%3A21%3A00.573Z" src="https://social-cards.sst.dev/opencode-share/TmV3IHNlc3Npb24gLSAyMDI1LTEwLTI3VDE2OjIxOjAwLjU3M1o=.png?model=opencode/kimi-k2&version=0.15.18&id=S77fbWtv" /></a> [opencode session](https://opencode.ai/s/S77fbWtv)&nbsp;&nbsp;|&nbsp;&nbsp;[github run](/sst/opencode/actions/runs/18848130030)
yindo added the pull-request label 2026-02-16 18:15:23 -05:00
yindo closed this issue 2026-02-16 18:15:23 -05:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: anomalyco/opencode#10661