devika icon indicating copy to clipboard operation
devika copied to clipboard

Feature Request: Use DuckDuckGO API for Search

Open Pokeylooted opened this issue 11 months ago • 3 comments

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

Pokeylooted avatar Mar 23 '24 23:03 Pokeylooted

its already been done and there is a pull request waiting to be merged

EasyTop avatar Mar 24 '24 00:03 EasyTop

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

Pokeylooted avatar Mar 24 '24 02:03 Pokeylooted

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

EasyTop avatar Mar 24 '24 04:03 EasyTop

already done

ARajgor avatar Apr 03 '24 18:04 ARajgor