Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: add language param to generate_outline_report_prompt #1109

Merged

Conversation

fibonacci998
Copy link
Contributor

when run cli script

python cli.py "story protocol" --report_type outline_report

it throws error:

File "/home/gpt-researcher/gpt_researcher/actions/report_generation.py", line 237, in generate_report
    content = f"{generate_prompt(query, context, report_source, report_format=cfg.report_format, tone=tone, total_words=cfg.total_words, language=cfg.language)}"
TypeError: generate_outline_report_prompt() got an unexpected keyword argument 'language'

I found that because generate_outline_report_prompt does not have language param

Copy link
Owner

@assafelovic assafelovic left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Super important thank you!

@assafelovic assafelovic merged commit bfde644 into assafelovic:master Feb 6, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants