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.3.2.tar.gz
(9.0 kB
view hashes)
Built Distribution
Close
Hashes for duck_chat-1.3.2-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | f034c14842c7ef2a8a22887b9532eaed8ff1db2f0d5a9c47288dbe9dfb7771f1 |
|
MD5 | f2e99f22bf965854b4eb9fa13c3d4a3a |
|
BLAKE2b-256 | cc72bd0cece161d5c7a17f264979708f563427d632f667473cf80c2e0a5f74c9 |