Update cheatsheets

This commit is contained in:
ivuorinen
2025-03-18 00:18:35 +00:00
parent 9cdd033c95
commit a9720510d1
43 changed files with 362 additions and 132 deletions

View File

@@ -16,22 +16,22 @@ source: https://github.com/tldr-pages/tldr.git
`llm "{{Ten fun names for a pet pelican}}"`
- Run a [s]ystem prompt against a file:
- Run a system prompt against a file:
`cat {{path/to/file.py}} | llm --system "{{Explain this code}}"`
`cat {{path/to/file.py}} | llm {{[-s|--system]}} "{{Explain this code}}"`
- Install packages from PyPI into the same environment as LLM:
`llm install {{package1 package2 ...}}`
- Download and run a prompt against a [m]odel:
- Download and run a prompt against a model:
`llm --model {{orca-mini-3b-gguf2-q4_0}} "{{What is the capital of France?}}"`
`llm {{[-m|--model]}} {{orca-mini-3b-gguf2-q4_0}} "{{What is the capital of France?}}"`
- Create a [s]ystem prompt and [s]ave it with a template name:
- Create a system prompt and save it with a template name:
`llm --system '{{You are a sentient cheesecake}}' --save {{sentient_cheesecake}}`
`llm {{[-s|--system]}} '{{You are a sentient cheesecake}}' --save {{sentient_cheesecake}}`
- Have an interactive chat with a specific [m]odel using a specific [t]emplate:
- Have an interactive chat with a specific model using a specific template:
`llm chat --model {{chatgpt}} --template {{sentient_cheesecake}}`
`llm chat {{[-m|--model]}} {{chatgpt}} {{[-t|--template]}} {{sentient_cheesecake}}`