Closed Undertone0809 closed 1 year ago
Having the same issue
The generator doesn't aggregate the data, it yields one at a time. That is, if I add this parameter again, it will just be a counter that will stop the generator when it gives the right number of results.
I migrated our code to new DDGS.text func and use islice to limit the max result for backward comp. In case any interest, please see https://github.com/Significant-Gravitas/Auto-GPT/pull/4383/files.
I migrated our code to new DDGS.text func and use islice to limit the max result for backward comp. In case any interest, please see https://github.com/Significant-Gravitas/Auto-GPT/pull/4383/files.
A good solution!
I wonder know DDGS().text() how to set max_results like ddg()
If I use ddg(),I can do as follows.
But I found DDGS might lose that ability. It can not use
max_result
parameter. Willmax_result
be provided forDDGS
in the future?