Skip to main content

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

  1. Install python 3.12

  2. Create python venv (optionally)

python -m venv .venv && source .venv/bin/activate
  1. Install package

    • Install auto
    pip install -U https://github.com/mrgick/duckduckgo-chat-ai/archive/master.zip
    
    • Install manually

      1. Clone repo
      git clone https://github.com/mrgick/duckduckgo-chat-ai.git && cd duckduckgo-chat-ai
      
      1. 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.3.tar.gz (10.5 kB view details)

Uploaded Source

Built Distribution

duck_chat-1.3.3-py3-none-any.whl (10.8 kB view details)

Uploaded Python 3

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

Hashes for duck_chat-1.3.3.tar.gz
Algorithm Hash digest
SHA256 55acdd378464be6baf03d439c253a838c2732fdb3fa500e65d86eac045d4d919
MD5 93c6cda9cc6cb6564bd1d7d9154fd329
BLAKE2b-256 dcf436c4d198bb49d28a9b884c744ef3b47b8cbeffd764bc459e07a19fe14d95

See more details on using hashes here.

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

Hashes for duck_chat-1.3.3-py3-none-any.whl
Algorithm Hash digest
SHA256 560d8eea62e9715968055ebe8d43c3dd604e1e1f070e9cafd4583029bfe60a5c
MD5 47bcac2083c789b42852c8d8d00eb5a6
BLAKE2b-256 c6a4044b6d2307e55e2f6807b8d043d7556626bdbef48ea2414a100ed79cdc89

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page