Skip to main content

A CLI tool to prompt LLMs by reego.software

Project description

prompt_llm

Version

0.1.4

  • Prompt LLMs via cli

Installation

  1. Clone the repo

  2. Install

  • Local:
    • pip install --editable .
  • PyPi:
    • pip install prompt_llm
  1. Install auto-completion:
  • prompt_llm --install-completion
  • source ~/.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-ls
  • prompt_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)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

prompt_llm-0.1.4-py3-none-any.whl (6.8 kB view details)

Uploaded Python 3

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

Hashes for prompt_llm-0.1.4.tar.gz
Algorithm Hash digest
SHA256 8014cf83c36efbdaf6f6e54f218a03772c652691e619fea252fa3c308c2c6ddd
MD5 a5e1dde3ad34b54742a5be1de81003a2
BLAKE2b-256 911e72224dbb8ba5c4f0306e8e4e2feeba41dc4a72d69e7ea0188d7290da1913

See more details on using hashes here.

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

Hashes for prompt_llm-0.1.4-py3-none-any.whl
Algorithm Hash digest
SHA256 4e8f9a570292e94756e24fe1b30ef6de0c19a7988c3359f9f09c761ed1bf7f4a
MD5 d7bfcf0b48cd0a0c5c727d56d24ce15e
BLAKE2b-256 245905cf4386ae1ff0b78a3a25d6afd044d01d7dc2229574bd21186d99e6274a

See more details on using hashes here.

Supported by

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