A python-implemented DuckDuckGo AI chat client with model selection and dialog history during usage.
Based on the ideas of duck-hey
By using this client you accept DuckDuckGo AI Chat ToS
-
Install python 3.12
-
Create python venv (optionally)
python -m venv .venv && source .venv/bin/activate
-
Install package
- Install auto
pip install -U https://github.com/mrgick/duckduckgo-chat-ai/archive/master.zip
-
Install manually
- Clone repo
git clone https://github.com/mrgick/duckduckgo-chat-ai.git && cd duckduckgo-chat-ai
- Install package
pip install -U .
- Using terminal
python -m duck_chat
or
duck_chat
P.S. You can use hey config
".config/hey/conf.toml"
Thanks k-aito
- Using as library
import asyncio
from duck_chat import DuckChat
async def main():
async with DuckChat() as chat:
print(await chat.ask_question("2+2?"))
await asyncio.sleep(1)
print(await chat.ask_question("6+6?"))
asyncio.run(main())