DuckDuckGo Chat AI client
Project description
A DuckDuckGo AI chat client written in python
A python-implemented DuckDuckGo AI chat client with model selection and dialog history during usage.
Based on the ideas of duck-hey
Disclaimer
By using this client you accept DuckDuckGo AI Chat ToS
Installation
-
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 .
Usage
- 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())
Project details
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
duck_chat-1.1.1.tar.gz
(7.9 kB
view hashes)
Built Distribution
Close
Hashes for duck_chat-1.1.1-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 356e7f52f7a20c9f21b4c07ca94ccaf256149b497eedf40b45b94c2d9c89a27b |
|
MD5 | ba7f1f689fe4aeb6f3828b84557116ba |
|
BLAKE2b-256 | b97bb29c1b52b83bd62fa564111326bdd48d2658a4ab90d7f50dce4fcd5e355f |