Skip to content

Commit d7515c4

Browse files
author
Jason Chuang
committed
fix the rough flow to produce output.md
1 parent 53d1bc8 commit d7515c4

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

open_deepsearch/deep_research.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -64,7 +64,7 @@ async def write_final_report(prompt: str, learnings: List[str], visited_urls: Li
6464
'schema': BaseModel
6565
})
6666
urls_section = f"/n/n## Sources/n/n{''.join([f'- {url}/n' for url in visited_urls])}"
67-
return res['object']['reportMarkdown'] + urls_section
67+
return '\n'.join(res['object']['queries']) + urls_section
6868

6969
async def process_serp_query(serp_query: Dict[str, str], breadth: int, depth: int, learnings: List[str], visited_urls: List[str], progress: ResearchProgress, report_progress: callable) -> Dict[str, List[str]]:
7070
try:

requirements.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ openai==1.63.2
22
aiohttp>=3.9.0
33
aiofiles>=23.2.1
44
tiktoken>=0.5.0
5-
python-dotenv>=1.0.0
5+
python-dotenv>=1.0.1
66
firecrawl-py>=1.11.1
77
typer[all]>=0.9.0
88
prompt-toolkit>=3.0.0

0 commit comments

Comments
 (0)