CLI tool to chat with OpenAI GPT
Project description
topenai
topenai (terminal openai) — a simple command line interface tool to interact with OpenAI.
Installation
pip install topenai
To install the latest testing version (may contain more bugs), run:
pip install --index-url https://test.pypi.org/simple/ --extra-index-url https://pypi.org/simple/ topenai
Features
- Multiple chat threads
- Chat history
- Rename, delete and switch sessions
Usage
Run topenai in your terminal
- Enter
/newto start a new chat (/n) /switch <chat_id>to change chat (/s)/listto list all chats (/l)/rename <old_id> <new_id>to rename a chat (/r)/delete <chat_id>to delete a chat (/d)/apikeyto change API key/modelto change model/helpto display this help message (/h)/exitto exit (/e)
Known issues
- UUIDs of sessions instead of readable names
- Rename is not working
Developing Setup
If you want to set this package up for directly editing it's source code (for contributing):
-
Clone the package
git clone https://github.com/vladzima/topenai -
Create a dynamic link This will make the package dynamically update with your local changes:
pip install -e .
TODO
- Make chat history more accesible
- Allow OpenAI API fune-tuning parameters
- Migrate to official OpenAI python API client
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 topenai-0.0.8.tar.gz.
File metadata
- Download URL: topenai-0.0.8.tar.gz
- Upload date:
- Size: 6.0 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.10.13
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
d0d5fca85d18da2385c9a30454bf112f7b18d92e4d87c2a8c5b3a153065cf52f
|
|
| MD5 |
1e25776fb94fdb57c6eef31e36373a32
|
|
| BLAKE2b-256 |
eaf8febbfac6ca11c49c3f3180ec39ca00e8b50dfaba368710ddf70d1353c404
|
File details
Details for the file topenai-0.0.8-py3-none-any.whl.
File metadata
- Download URL: topenai-0.0.8-py3-none-any.whl
- Upload date:
- Size: 6.1 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.10.13
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
c112cf1d5a2b463f23a8b97b81e8463f0c28355687384e3d81d0de7024079942
|
|
| MD5 |
1c27d5472d4e924faa54dbbe241420c8
|
|
| BLAKE2b-256 |
0cecbb7be7a1cda0b08ed24039f951aa364d1836c7766e84c5bf9915871681c2
|