assafelovic / gpt-researcher

GPT based autonomous agent that does online comprehensive research on any given topic
https://gptr.dev
MIT License
12.98k stars 1.61k forks source link

cli.py not have detailed_report option #581

Open slavonnet opened 3 weeks ago

slavonnet commented 3 weeks ago

In help we have it

(venv) root@ai:/home/venv/gpt-researcher# python cli.py -h
WARNING:root:USER_AGENT environment variable not set, consider setting it to identify your requests.
usage: cli.py [-h] --report_type {research_report,resource_report,outline_report,custom_report,detailed_report,subtopic_report} query

Generate a research report.

positional arguments:
  query                 The query to conduct research on.

options:
  -h, --help            show this help message and exit
  --report_type {research_report,resource_report,outline_report,custom_report,detailed_report,subtopic_report}
                        The type of report to generate. Options:
                          research_report: Summary - Short and fast (~2 min)
                          resource_report:
                          outline_report:
                          custom_report:
                          detailed_report: Detailed - In depth and longer (~5 min)
                          subtopic_report:

but in runtime is not work

(venv) root@ai:/home/venv/gpt-researcher# python cli.py "XXX?" --report_type detailed_report
WARNING:root:USER_AGENT environment variable not set, consider setting it to identify your requests.
/home/venv/gpt-researcher/gpt_researcher/master/prompts.py:273: UserWarning: Invalid report type: detailed_report.
Please use one of the following: research_report, resource_report, outline_report, custom_report, subtopic_report
Using default report type: research_report prompt.
  warnings.warn(f"Invalid report type: {report_type}.\n"
assafelovic commented 3 weeks ago

Thank you @slavonnet I'll take a look at this!