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 results page API function calls

hashedvikingff5257772b2b
diff --git a/src/local_deep_research/web/static/js/components/results.js b/src/local_deep_research/web/static/js/components/results.js
index c2702fa9d5..9cb64f4302 100644
--- a/src/local_deep_research/web/static/js/components/results.js
+++ b/src/local_deep_research/web/static/js/components/results.js
@@ -101,8 +101,8 @@
window.ui.showSpinner(resultsContainer, 'Loading research results...');
try {
- // Get research results
- researchData = await window.api.getResearchResults(currentResearchId);
+ // Get research results - using getReport instead of undefined getResearchResults
+ researchData = await window.api.getReport(currentResearchId);
if (!researchData || !researchData.content) {
throw new Error('No research results found');
diff --git a/src/local_deep_research/web/static/js/services/api.js b/src/local_deep_research/web/static/js/services/api.js
index 0f81aef882..1aac503c5a 100644
--- a/src/local_deep_research/web/static/js/services/api.js
+++ b/src/local_deep_research/web/static/js/services/api.js
@@ -205,6 +205,15 @@ async function saveLlmConfig(config) {
return postJSON('/research/api/save_llm_config', config);
}
+/**
+ * Get markdown export for research
+ * @param {number} researchId - The research ID
+ * @returns {Promise<Object>} The markdown content
+ */
+async function getMarkdownExport(researchId) {
+ return fetchWithErrorHandling(`/research/api/research/${researchId}/markdown`);
+}
+
// Export the API functions
window.api = {
startResearch,
@@ -213,6 +222,7 @@ window.api = {
getResearchLogs,
getResearchHistory,
getReport,
+ getMarkdownExport,
terminateResearch,
deleteResearch,
clearResearchHistory,