Commit Graph
7 Commits
Author SHA1 Message Date
Small c0069f0a59 fix(ollama): pass tools to client.chat and parse tool_calls from response
OllamaLLM.generate_response() never forwarded the tools parameter to
ollama.Client.chat(), and _parse_response() hard-coded tool_calls to an
empty list. This caused graph memory entity extraction to silently return
zero results when using Ollama as the LLM provider.

- Forward tools to client.chat() when provided
- Parse tool_calls from response (supports both dict and object formats)
- Handle string arguments via json.loads

Fixes #4175

Signed-off-by: sxu75374 <imshuaixu@gmail.com>
Signed-off-by: Small <imshuaixu@gmail.com>
2026-03-01 06:55:20 -08:00
Parshva DaftariandGitHub 6e8c6c1cb7 Refactored base class config for llms (#3241) 2025-08-05 15:42:06 -07:00
Dev KhantandGitHub c5d298eec8 Remove unnecessary tools (#1979) 2024-10-22 11:47:16 +05:30
Deshraj YadavandGitHub 55c54beeab [Misc] Lint code and fix code smells (#1871) 2024-09-16 17:39:54 -07:00
Dev KhantandGitHub a972d2fb07 Code Formatting (#1828) 2024-09-07 22:39:28 +05:30
dbcontributionsandGitHub b6cfd960d1 Fix/ollama test cases (#1639) 2024-08-04 12:56:25 +05:30
Dev KhantandGitHub 44aa16a0f8 Support Ollama models (#1596) 2024-08-02 23:45:45 +05:30