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
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file duck_chat-1.3.3.tar.gz.
File metadata
- Download URL: duck_chat-1.3.3.tar.gz
- Upload date:
- Size: 10.5 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.1.1 CPython/3.12.4
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
55acdd378464be6baf03d439c253a838c2732fdb3fa500e65d86eac045d4d919
|
|
| MD5 |
93c6cda9cc6cb6564bd1d7d9154fd329
|
|
| BLAKE2b-256 |
dcf436c4d198bb49d28a9b884c744ef3b47b8cbeffd764bc459e07a19fe14d95
|
File details
Details for the file duck_chat-1.3.3-py3-none-any.whl.
File metadata
- Download URL: duck_chat-1.3.3-py3-none-any.whl
- Upload date:
- Size: 10.8 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.1.1 CPython/3.12.4
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
560d8eea62e9715968055ebe8d43c3dd604e1e1f070e9cafd4583029bfe60a5c
|
|
| MD5 |
47bcac2083c789b42852c8d8d00eb5a6
|
|
| BLAKE2b-256 |
c6a4044b6d2307e55e2f6807b8d043d7556626bdbef48ea2414a100ed79cdc89
|