mirror of
https://github.com/Hopiu/llm.git
synced 2026-03-17 05:00:25 +00:00
Using with a shell
This commit is contained in:
parent
41e5c5481f
commit
45b230b297
1 changed files with 8 additions and 0 deletions
|
|
@ -33,6 +33,14 @@ To switch from ChatGPT 3.5 (the default) to GPT-4 if you have access:
|
|||
|
||||
Pass `--model <model name>` to use a different model.
|
||||
|
||||
### Using with a shell
|
||||
|
||||
To generate a description of changes made to a Git repository since the last commit:
|
||||
|
||||
llm "Describe these changes: $(git diff)"
|
||||
|
||||
This pattern of using `$(command)` inside a double quoted string is a useful way to quickly assemble prompts.
|
||||
|
||||
## System prompts
|
||||
|
||||
You can use `--system '...'` to set a system prompt.
|
||||
|
|
|
|||
Loading…
Reference in a new issue