Add report_type parameter to GPTResearcher initialization

This update enables specifying the report type during researcher initialization. It introduces "deep" as the default report type, enhancing flexibility for future use cases.
This commit is contained in:
ThomasTaroni 2025-04-26 18:11:21 +02:00
parent 44b91b9375
commit 626345b65e

View file

@ -107,7 +107,7 @@ async def deep_research(query: str) -> Dict[str, Any]:
research_id = str(uuid.uuid4())
# Initialize GPT Researcher
researcher = GPTResearcher(query)
researcher = GPTResearcher(query, report_type="deep")
# Start research
try: