Open lawrenceztang opened 2 months ago
Can you assign this to me? I am new to open source and want to contribute in langchain.
@lawrenceztang No need of updating the code base to pass in the time parameter directly to the tool since that is a configuration which need to be passed to DuckDuckGoSearchAPIWrapper
Checked other resources
Example Code
Error Message and Stack Trace (if applicable)
No response
Description
DuckDuckGoSearchRun runs poorly when it runs with ddgs.text(timelimit='y'). See demo code for example.
We implement a quick fix by going to
DuckDuckGoSearchAPIWrapper
and changingtime: Optional[str] = "y"
totime: Optional[str] = "n"
. Thetime
variable should bey
by default. Furthermore, the time variable should be able to be passed in DuckDuckGoSearchRun, which currently isn't possible.System Info