diff options
| author | tanaka takashi <isazaka@gmail.com> | 2026-06-26 23:54:17 +0900 |
|---|---|---|
| committer | tanaka takashi <isazaka@gmail.com> | 2026-06-26 23:54:17 +0900 |
| commit | 3a9e8e18df4c596360da54000f65e1bebc6039c2 (patch) | |
| tree | 0c6dc5fd75cc8f751ca6d7dca01c7e7b5fb3c9f5 /src/ollama_web/llm.py | |
| parent | a296c2c3a294648c04286a5c027deddbbdc8d5ae (diff) | |
MCP機能追加
Diffstat (limited to 'src/ollama_web/llm.py')
| -rw-r--r-- | src/ollama_web/llm.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/ollama_web/llm.py b/src/ollama_web/llm.py index 461cef9..0ab00a3 100644 --- a/src/ollama_web/llm.py +++ b/src/ollama_web/llm.py @@ -191,7 +191,7 @@ def chat_with_tools( caps = capabilities or set() raw_client = get_client(host) reg = registry or default_registry() - tools: list[ToolCallable] = [cast(Any, c) for c in reg.callables] + tools: list[ToolCallable] = [cast(Any, t) for t in reg.ollama_tools] effective_tools = tools if "tools" in caps else [] effective_think = think if "thinking" in caps else None @@ -342,7 +342,7 @@ def stream_chat_with_tools( caps = capabilities or set() raw_client = get_client(host) reg = registry or default_registry() - tools: list[ToolCallable] = [cast(Any, c) for c in reg.callables] + tools: list[ToolCallable] = [cast(Any, t) for t in reg.ollama_tools] effective_tools = tools if "tools" in caps else [] effective_think = think if "thinking" in caps else None |
