Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
orangecat
ollama
Commits
3f3eb19a
"torchvision/transforms/_functional_tensor.py" did not exist on "4cb83c2f285101f83b5143663e0d90305e9d7200"
Unverified
Commit
3f3eb19a
authored
Jan 08, 2024
by
Bruce MacDonald
Committed by
GitHub
Jan 08, 2024
Browse files
document response in modelfile template variables (#1428)
parent
059ae458
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
5 deletions
+6
-5
docs/modelfile.md
docs/modelfile.md
+6
-5
No files found.
docs/modelfile.md
View file @
3f3eb19a
...
...
@@ -156,11 +156,12 @@ PARAMETER <parameter> <parametervalue>
#### Template Variables
| Variable | Description |
| --------------- | ------------------------------------------------------------------------------------------------------------- |
|
`{{ .System }}`
| The system message used to specify custom behavior, this must also be set in the Modelfile as an instruction. |
|
`{{ .Prompt }}`
| The incoming prompt, this is not specified in the model file and will be set based on input. |
|
`{{ .First }}`
| A boolean value used to render specific template information for the first generation of a session. |
| Variable | Description |
| ----------------- | ------------------------------------------------------------------------------------------------------------- |
|
`{{ .System }}`
| The system message used to specify custom behavior, this must also be set in the Modelfile as an instruction. |
|
`{{ .Prompt }}`
| The incoming prompt, this is not specified in the model file and will be set based on input. |
|
`{{ .Response }}`
| The response from the LLM, if not specified response is appended to the end of the template. |
|
`{{ .First }}`
| A boolean value used to render specific template information for the first generation of a session. |
```
modelfile
TEMPLATE """
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment