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())
Release files for duck-chat 1.3.3
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| duck_chat-1.3.3.tar.gz | 10.5 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| duck_chat-1.3.3-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 21.2 kB
Release files / duck_chat-1.3.3.tar.gz
| Download URL | duck_chat-1.3.3.tar.gz |
|---|---|
| Size | 10.5 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
55acdd378464be6baf03d439c253a838c2732fdb3fa500e65d86eac045d4d919
|
|
BLAKE2b-256 checksum How to use checksums |
dcf436c4d198bb49d28a9b884c744ef3b47b8cbeffd764bc459e07a19fe14d95
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/5.1.1 CPython/3.12.4
|
Release files / duck_chat-1.3.3-py3-none-any.whl
| Download URL | duck_chat-1.3.3-py3-none-any.whl |
|---|---|
| Size | 10.8 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
560d8eea62e9715968055ebe8d43c3dd604e1e1f070e9cafd4583029bfe60a5c
|
|
BLAKE2b-256 checksum How to use checksums |
c6a4044b6d2307e55e2f6807b8d043d7556626bdbef48ea2414a100ed79cdc89
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/5.1.1 CPython/3.12.4
|