mirror of
https://github.com/affaan-m/ECC.git
synced 2026-11-03 06:35:49 +00:00
OllamaProvider built the /api/chat payload without the tools from LLMInput, so Ollama models were never told any tools existed and a ReActAgent backed by Ollama never ran one. The response side already parsed message.tool_calls. Send the tools in the OpenAI function format that /api/chat accepts, matching the other providers. Fixes #3274 Signed-off-by: FenjuFu <fufenjupku@gmail.com>