co-mono/packages
Tiago Freitas 8f67e00160
fix: include empty tools param when conversation has tool history (#150)
Anthropic (via LiteLLM/proxy) requires the `tools` parameter to be
present when messages include tool_calls or tool role messages,
even if no tools are currently being provided.

This adds a `hasToolHistory()` helper to detect if the conversation
contains tool calls or tool results, and ensures `tools: []` is
included in the request params when needed.

Fixes #149

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-authored-by: Ubuntu <ubuntu@ip-172-31-50-87.us-west-2.compute.internal>
Co-authored-by: Claude Opus 4.5 <noreply@anthropic.com>
2025-12-08 21:30:43 +01:00
..
agent Add xhigh thinking level for OpenAI codex-max models 2025-12-08 21:12:54 +01:00
ai fix: include empty tools param when conversation has tool history (#150) 2025-12-08 21:30:43 +01:00
coding-agent Add xhigh thinking level for OpenAI codex-max models 2025-12-08 21:12:54 +01:00
mom Release v0.13.2 2025-12-07 01:25:17 +01:00
pods Release v0.13.2 2025-12-07 01:25:17 +01:00
proxy Release v0.13.2 2025-12-07 01:25:17 +01:00
tui Release v0.13.2 2025-12-07 01:25:17 +01:00
web-ui Release v0.13.2 2025-12-07 01:25:17 +01:00