From 35416c220a59e2df5e7e208cbd2a698c19f37599 Mon Sep 17 00:00:00 2001 From: akc Date: Fri, 30 Jan 2026 21:16:40 +0300 Subject: [PATCH] fix: use ollama_chat provider for proper tool --- surfsense_backend/app/agents/new_chat/llm_config.py | 2 +- surfsense_backend/app/services/llm_service.py | 6 +++--- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/surfsense_backend/app/agents/new_chat/llm_config.py b/surfsense_backend/app/agents/new_chat/llm_config.py index f9f92959c..12b389a2d 100644 --- a/surfsense_backend/app/agents/new_chat/llm_config.py +++ b/surfsense_backend/app/agents/new_chat/llm_config.py @@ -32,7 +32,7 @@ PROVIDER_MAP = { "GROQ": "groq", "COHERE": "cohere", "GOOGLE": "gemini", - "OLLAMA": "ollama", + "OLLAMA": "ollama_chat", "MISTRAL": "mistral", "AZURE_OPENAI": "azure", "OPENROUTER": "openrouter", diff --git a/surfsense_backend/app/services/llm_service.py b/surfsense_backend/app/services/llm_service.py index f0198d91f..e21259990 100644 --- a/surfsense_backend/app/services/llm_service.py +++ b/surfsense_backend/app/services/llm_service.py @@ -94,7 +94,7 @@ async def validate_llm_config( "GROQ": "groq", "COHERE": "cohere", "GOOGLE": "gemini", - "OLLAMA": "ollama", + "OLLAMA": "ollama_chat", "MISTRAL": "mistral", "AZURE_OPENAI": "azure", "OPENROUTER": "openrouter", @@ -241,7 +241,7 @@ async def get_search_space_llm_instance( "GROQ": "groq", "COHERE": "cohere", "GOOGLE": "gemini", - "OLLAMA": "ollama", + "OLLAMA": "ollama_chat", "MISTRAL": "mistral", "AZURE_OPENAI": "azure", "OPENROUTER": "openrouter", @@ -311,7 +311,7 @@ async def get_search_space_llm_instance( "GROQ": "groq", "COHERE": "cohere", "GOOGLE": "gemini", - "OLLAMA": "ollama", + "OLLAMA": "ollama_chat", "MISTRAL": "mistral", "AZURE_OPENAI": "azure", "OPENROUTER": "openrouter",