devika
devika copied to clipboard
Feature Request: Use DuckDuckGO API for Search
I think using DuckDuckGO API for search could be more benefitial to it, and would make selfhosting the whole thing much simpler. https://github.com/deedy5/duckduckgo_search
its already been done and there is a pull request waiting to be merged
its already been done and there is a pull request waiting to be merged
I checked it out, and, it doesn't seem to be working properly. It gets stuck infinitely on searching
in coder.py change the "~~~" to "```" in the response split
def validate_response(self, response: str) -> Union[List[Dict[str, str]], bool]:
print(response)
response = response.strip()
response = response.split("```", 1)[1]
response = response[:response.rfind("```")]
also it works inconsistently sometimes it writes several files, sometimes it only does research, sometimes it researches then writes a partial file then hangs
already done