A CLI tool to prompt LLMs by reego.software
Project description
prompt_llm
Version
0.1.4
- Prompt LLMs via cli
Installation
-
Clone the repo
-
Install
- Local:
pip install --editable .
- PyPi:
pip install prompt_llm
- Install auto-completion:
prompt_llm --install-completionsource ~/.bashrc
Config:
- Supported configs:
--api-key,--model,--system,--temperature
Set Config
prompt_llm config_add --api-key "<api_key>" --system "<system_messgae>" --temperature <temperature>
Save current config to a profile
prompt_llm config_save_to --profile="openai"
Load the config from a profile
prompt_llm config_load_from --profile="openai"
Remove Config key:
prompt_llm config-rm temperature
View Config:
prompt_llm config-lsprompt_llm config-ls --profile="openai"
Run cli
prompt_llm openai "Tell me something"
To contribute
1. Build project
python -m build
### 2. Upload
python3 -m twine upload --repository pypi dist/* --verbose
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
prompt_llm-0.1.4.tar.gz
(6.1 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
File details
Details for the file prompt_llm-0.1.4.tar.gz.
File metadata
- Download URL: prompt_llm-0.1.4.tar.gz
- Upload date:
- Size: 6.1 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.0.1 CPython/3.12.8
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
8014cf83c36efbdaf6f6e54f218a03772c652691e619fea252fa3c308c2c6ddd
|
|
| MD5 |
a5e1dde3ad34b54742a5be1de81003a2
|
|
| BLAKE2b-256 |
911e72224dbb8ba5c4f0306e8e4e2feeba41dc4a72d69e7ea0188d7290da1913
|
File details
Details for the file prompt_llm-0.1.4-py3-none-any.whl.
File metadata
- Download URL: prompt_llm-0.1.4-py3-none-any.whl
- Upload date:
- Size: 6.8 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.0.1 CPython/3.12.8
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
4e8f9a570292e94756e24fe1b30ef6de0c19a7988c3359f9f09c761ed1bf7f4a
|
|
| MD5 |
d7bfcf0b48cd0a0c5c727d56d24ce15e
|
|
| BLAKE2b-256 |
245905cf4386ae1ff0b78a3a25d6afd044d01d7dc2229574bd21186d99e6274a
|