Skip to content

reego-software/prompt_llm

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

11 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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

About

Prompt LLM CLI

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages