You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
llm -s 'Suggest topics for this post as a JSON array'
71
71
```
72
+
Different models support system prompts in different ways.
73
+
74
+
The OpenAI models are particularly good at using system prompts as instructions for how they should process additional input sent as part of the regular prompt.
75
+
76
+
Other models might use system prompts change the default voice and attitude of the model.
77
+
78
+
System prompts can be saved as {ref}`templates <prompt-templates>` to create reusable tools. For example, you can create a template called `pytest` like this:
79
+
80
+
```bash
81
+
llm -s 'write pytest tests for this code' --save pytest
82
+
```
83
+
And then use the new template like this:
84
+
```bash
85
+
cat llm/utils.py | llm -t pytest
86
+
```
87
+
See {ref}`prompt templates <prompt-templates>` for more.
88
+
72
89
## Listing available models
73
90
74
91
The `llm models` command lists every model that can be used with LLM, along with any aliases:
0 commit comments