Skip to content

~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.

Fix: Improve GitHub search engine with better LLM response handling

hashedvikingce00fc8caf1d
diff --git a/src/local_deep_research/web_search_engines/engines/search_engine_github.py b/src/local_deep_research/web_search_engines/engines/search_engine_github.py
index c9bf5f8654..5e547a6a3b 100644
--- a/src/local_deep_research/web_search_engines/engines/search_engine_github.py
+++ b/src/local_deep_research/web_search_engines/engines/search_engine_github.py
@@ -134,7 +134,13 @@ class GitHubSearchEngine(BaseSearchEngine):
try:
response = self.llm.invoke(prompt)
- optimized_query = response.content.strip()
+
+ # Handle different response formats (string or object with content attribute)
+ if hasattr(response, "content"):
+ optimized_query = response.content.strip()
+ else:
+ # Handle string responses
+ optimized_query = str(response).strip()
# Validate the optimized query
if optimized_query and len(optimized_query) > 0: