[PR #9912] fix: include _noop tool in activeTools for LiteLLM proxy compatibility #13273

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

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

State: closed
Merged: Yes


Summary

  • Fix compaction failing with LiteLLM proxies when message history contains tool calls

Problem

When using /compact on sessions with LiteLLM proxy providers, the request fails with:

litellm.UnsupportedParamsError: Bedrock doesn't support tool calling without `tools=` param specified

Root Cause

The _noop dummy tool was being added correctly to satisfy LiteLLM's requirement, but it was filtered out from activeTools on line 211 of llm.ts, so it was never actually sent in the API request.

Fix

Remove _noop from the activeTools filter so it gets included in requests when needed.

**Original Pull Request:** https://github.com/anomalyco/opencode/pull/9912 **State:** closed **Merged:** Yes --- ## Summary - Fix compaction failing with LiteLLM proxies when message history contains tool calls ## Problem When using `/compact` on sessions with LiteLLM proxy providers, the request fails with: ``` litellm.UnsupportedParamsError: Bedrock doesn't support tool calling without `tools=` param specified ``` ## Root Cause The `_noop` dummy tool was being added correctly to satisfy LiteLLM's requirement, but it was filtered out from `activeTools` on line 211 of `llm.ts`, so it was never actually sent in the API request. ## Fix Remove `_noop` from the `activeTools` filter so it gets included in requests when needed.
yindo added the pull-request label 2026-02-16 18:18:08 -05:00
yindo closed this issue 2026-02-16 18:18:08 -05:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: anomalyco/opencode#13273