Installation
I recommend using pipx for installation. Follow pipx's documentation to install it, then run pipx install chat-cli.
Building
Chat uses the poetry build tool.
- Install poetry
- Clone the chat project repo
- Run
poetry buildin the project root - The wheel and sdist will be built in the
dist/directory
Usage
chat [-h] [--apikey APIKEY] [--prompt PROMPT] [--save] [-f CONFIG] [-m MODEL] [--resume] [-s SEARCH]
Options
-h, --help
show these options and exit
--apikey
Specify the API key to use when connection to OpenAI
--prompt
Change the prompt that is displayed for input. The sequences %t and %T can be used to display the current token and max token count for the model, respectively. Default prompt is '%t/%T > '
--save
If specified with --apikey and/or --prompt, save them to the config file
-f, --config
Specify an alternate file to load the configuration from (Default: $XDG_CONFIG_HOME/Chat/chat.json)
-m, --model
Specify the model to use, refer to https://platform.openai.com/docs/models for list
--resume
Resumes last conversation
-s, --search
Search your chat history for a given regex
Commands
When chating, the following commands perform special actions
.redo
Regenerates the previous response. Removes the old response from the history
.copy
Copies the first code block in the previous response to the system clipboard. Print's whats been copied
.exit
Exits the application and saves the chat history. Same as encountering EOF. Prints the chat log location.
.summarize
Asks the model to summarize the conversation and starts a new conversation with the summary as the first message. Saves the conversation prior to the summary. Should be called before reaching the token limit to continue a conversation.
Metadata
Release files for chat-cli 0.3.5
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | |
|---|---|---|---|---|
| chat_cli-0.3.5.tar.gz | 5.8 kB | Without provenance | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| chat_cli-0.3.5-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 13.2 kB
Release files / chat_cli-0.3.5.tar.gz
| Download URL | chat_cli-0.3.5.tar.gz |
|---|---|
| Size | 5.8 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
0aa565bfaae50365c0bb54768930c8ca0024ed6df155d3ebb8e845839460c502
|
|
BLAKE2b-256 checksum How to use checksums |
28b059bab33a462e316365bc03ce951811bee30e23f63b874baef9f4c9681f45
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/4.0.2 CPython/3.11.6
|
Release files / chat_cli-0.3.5-py3-none-any.whl
| Download URL | chat_cli-0.3.5-py3-none-any.whl |
|---|---|
| Size | 7.5 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
0dd4fc7f3d049df9e9a087a7d96eb06b0df5af8e1718b7fb6b2304d3e637bdf6
|
|
BLAKE2b-256 checksum How to use checksums |
9904d19078896788879bb6eea7ad47d83d0d01b48c0fbfe5ed0a09aea4dc6c9f
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/4.0.2 CPython/3.11.6
|
Security for chat-cli 0.3.5
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.