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:
parent
44b91b9375
commit
626345b65e
1 changed files with 1 additions and 1 deletions
|
@ -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:
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue