KamoCRM

Hugging Face chat sends the tools and returns the tool calls

FixAIService
Shipped
September 25, 2026 at 9:07 PM UTC
Author
Kamo
Commit
ff1f0ed

message.tool_calls, but HuggingFaceAdapter sent no tools (so tool_choice was dropped too) and never read tool_calls. Every HUGGINGFACE model therefore failed the TOOL_CALLING probe ('The model did not call the tool', SP01 Task 38, live on deepseek-ai/DeepSeek-V3.2), and the chat tool loop never ran a tool on one. The adapter now renders tools as OpenAiCompatibleAdapter does (spec 4.6.1: tool_calls (a missing id is made up, object arguments pass as JSON text), and renders the tool loop's next turn (assistant tool_calls, tool_call_id). The streaming request carries no tools, so streamed chat is unchanged.

All changes

Like what you see shipping?

All of it arrives in your workspace on its own. Start on the free plan and read this page again in a month.

Start Free ForeverView Pricing