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

Cannot set custom variables via config.json #1041

Open
ErikBaer opened this issue Dec 23, 2024 · 1 comment
Open

Cannot set custom variables via config.json #1041

ErikBaer opened this issue Dec 23, 2024 · 1 comment

Comments

@ErikBaer
Copy link

When I pass a config.json via the config_path value to the pip package of GPTResearcher, the values are not used. Instead the default values are always used. E.G. for TOTAL_WORDS.
This is the command I am running:
researcher = GPTResearcher(query=query, report_type=f'{type}_report', tone="Objective", config_path="config.json")
And this is my config.json (some values set for testing):
{
"TOTAL_WORDS":4000,
"REPORT_FORMAT": "APA",
"TEMPERATURE": 0.2,
"MAX_ITERATIONS": 3
}
I also tried passing TOTAL_WORDS as env-var as suggested in the documentation, however this also doesn't work.
Could you please tell me how I can customize the reports via adding custom config variables ?
Thanks a lot, Much appreciated!

@assafelovic
Copy link
Owner

Hey, have you tried verifying other vars but total words? It is the one field that is not very determinstic due to the nature of LLMs

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

No branches or pull requests

2 participants