~95% on SimpleQA (e.g. Qwen3.6-27B on a 3090). Supports all local and cloud LLMs (llama.cpp, Ollama, Google, ...). 10+ search engines - arXiv, PubMed, your private documents. Everything Local & Encrypted.
Python academiaanthropicarxivbravedeep-researchencryptionhome-automationhomeserverlocallocal-deep-researchlocal-llmmistralollamaopenaipubmedresearchresearch-toolretrieval-augmented-generationsearxngself-hosted
lm studio working
LearningCircuit525aa2619ff5
diff --git a/pyproject.toml b/pyproject.tomlindex 77561554a9..5c0d72f8e3 100644--- a/pyproject.toml+++ b/pyproject.toml@@ -51,6 +51,7 @@ dependencies = ["lxml>=4.9.2","pdfplumber>=0.9.0","unstructured>=0.10.0",+][project.urls]diff --git a/src/local_deep_research/defaults/llm_config.py b/src/local_deep_research/defaults/llm_config.pyindex 2e584e1eea..e99afc032e 100644--- a/src/local_deep_research/defaults/llm_config.py+++ b/src/local_deep_research/defaults/llm_config.py@@ -115,36 +115,19 @@ def get_llm(model_name=None, temperature=None, provider=None):return get_fallback_model(temperature)elif provider == "lmstudio":- try:- # Import LM Studio package- import lmstudio- from langchain_core.language_models import BaseLLM-- # Get LM Studio URL from settings++ # LM Studio supports OpenAI API format, so we can use ChatOpenAI directlylmstudio_url = settings.llm.get('lmstudio_url', "http://localhost:1234")- # Create LM Studio LLM instance- model = lmstudio.llm(model_name)-- # Return a LangChain compatible wrapper- class LMStudioLLM(BaseLLM):- def _call(self, prompt, stop=None, **kwargs):- result = model.complete(prompt, temperature=temperature)- return result.completion-- @property- def _identifying_params(self):- return {"model_name": model_name}-- @property- def _llm_type(self):- return "lmstudio"-- return LMStudioLLM()- except ImportError:- logger.error("LM Studio package not installed. Run 'pip install lmstudio'")- raise ImportError("LM Studio package not installed. Run 'pip install lmstudio'")-+ return ChatOpenAI(+ model=model_name,+ api_key="lm-studio", # LM Studio doesn't require a real API key+ base_url=f"{lmstudio_url}/v1", # Use the configured URL with /v1 endpoint+ temperature=temperature,+ max_tokens=settings.llm.max_tokens+ )++elif provider == "llamacpp":try:# Import LlamaCpp