A command-line tool to interact with DuckDuckGo Chat API from your terminal
Project description
hey-py
Python port of hey, a command-line interface for DuckDuckGo's AI Chat with enhanced features.
✨ Features
🤖 AI Models
- Multiple model support:
- Claude 3 Haiku (default)
- GPT-4o Mini
- Mistral 8x7B
- Llama 3.1 70B
- Customizable system prompts
💬 Chat Experience
- Rich markdown support in responses
- Conversation memory with auto-expiry
- Stores last 10 messages
- 24-hour automatic expiration
- Manual clearing with
hey --clear - Persistent storage in
~/.cache/hey
- Real-time streaming responses
🛠️ Configuration
- Easy configuration via
hey config - HTTP and SOCKS proxy support
- Persistent settings in
~/.config/hey - Verbose mode for debugging
🚀 Installation
pip install hey-py
📖 Usage
Basic Usage
# Ask a question
hey What is Python?
# Clear conversation history
hey --clear
# Configure settings
hey config
Configuration Options
- Select AI model
- Set system prompt
- Configure proxy settings
- Accept Terms of Service
Environment Variables
HEY_CONFIG_PATH: Custom config directory (default:~/.config/hey)HEY_CACHE_PATH: Custom cache directory (default:~/.cache/hey)HEY_CONFIG_FILENAME: Custom config filename (default:conf.toml)HEY_CACHE_FILENAME: Custom cache filename (default:messages.json)
📝 License
GPLv3
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
hey_py-0.1.2.tar.gz
(10.9 kB
view details)
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
hey_py-0.1.2-py3-none-any.whl
(11.4 kB
view details)
File details
Details for the file hey_py-0.1.2.tar.gz.
File metadata
- Download URL: hey_py-0.1.2.tar.gz
- Upload date:
- Size: 10.9 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.12.3
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
e4946ef937c7134cc9907be594103d7f29636dd4c8e03e886c354947a6b2375a
|
|
| MD5 |
aa415e003244bf43c1520481f45c8f8d
|
|
| BLAKE2b-256 |
9cee6f54cc0e388270a25c061796c841e9ac4de72edaeb28e59b10d0c2c2192f
|
File details
Details for the file hey_py-0.1.2-py3-none-any.whl.
File metadata
- Download URL: hey_py-0.1.2-py3-none-any.whl
- Upload date:
- Size: 11.4 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.12.3
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
5a820602fa39dd417e0fb6e417dd87c10231ac2c18169c3c93ef9b177ab85c98
|
|
| MD5 |
89451f38c8a73c8fe479b0058d2cf329
|
|
| BLAKE2b-256 |
cfbc2b8a14cf568562e5fc90f1d0e95476db8b7276cff08209d51a85a500ff22
|