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: Change research_id type hints from int to str

LearningCircuit1677ba9c00bd
diff --git a/examples/api_usage/http/http_api_examples.py b/examples/api_usage/http/http_api_examples.py
index 14666dcd1e..44422b68ed 100755
--- a/examples/api_usage/http/http_api_examples.py
+++ b/examples/api_usage/http/http_api_examples.py
@@ -86,14 +86,14 @@ class LDRClient:
else:
raise Exception(f"Failed to start research: {response.text}")
- def get_research_status(self, research_id: int) -> Dict[str, Any]:
+ def get_research_status(self, research_id: str) -> Dict[str, Any]:
"""Get the status of a research task."""
response = self.session.get(
f"{self.base_url}/research/api/research/{research_id}/status"
)
return response.json()
- def get_research_result(self, research_id: int) -> Dict[str, Any]:
+ def get_research_result(self, research_id: str) -> Dict[str, Any]:
"""Get the results of a completed research task."""
response = self.session.get(
f"{self.base_url}/research/api/research/{research_id}/result"
@@ -101,7 +101,7 @@ class LDRClient:
return response.json()
def wait_for_research(
- self, research_id: int, timeout: int = 300
+ self, research_id: str, timeout: int = 300
) -> Dict[str, Any]:
"""Wait for research to complete and return results."""
start_time = time.time()