mirror of
https://github.com/tcsenpai/ollama.git
synced 2025-06-07 03:35:21 +00:00
Update modelfile.md to include MESSAGE
This commit is contained in:
parent
3ebd6a83fc
commit
b706794905
@ -38,6 +38,7 @@ INSTRUCTION arguments
|
|||||||
| [`SYSTEM`](#system) | Specifies the system message that will be set in the template. |
|
| [`SYSTEM`](#system) | Specifies the system message that will be set in the template. |
|
||||||
| [`ADAPTER`](#adapter) | Defines the (Q)LoRA adapters to apply to the model. |
|
| [`ADAPTER`](#adapter) | Defines the (Q)LoRA adapters to apply to the model. |
|
||||||
| [`LICENSE`](#license) | Specifies the legal license. |
|
| [`LICENSE`](#license) | Specifies the legal license. |
|
||||||
|
| [`MESSAGE`](#message) | Specify message history. |
|
||||||
|
|
||||||
## Examples
|
## Examples
|
||||||
|
|
||||||
@ -205,6 +206,19 @@ LICENSE """
|
|||||||
"""
|
"""
|
||||||
```
|
```
|
||||||
|
|
||||||
|
### MESSAGE
|
||||||
|
|
||||||
|
The `MESSAGE` instruction allows you to specify a message history for the model to use when responding:
|
||||||
|
|
||||||
|
```modelfile
|
||||||
|
MESSAGE user Is Toronto in Canada?
|
||||||
|
MESSAGE assistant yes
|
||||||
|
MESSAGE user Is Sacramento in Canada?
|
||||||
|
MESSAGE assistant no
|
||||||
|
MESSAGE user Is Ontario in Canada?
|
||||||
|
MESSAGE assistant yes
|
||||||
|
```
|
||||||
|
|
||||||
## Notes
|
## Notes
|
||||||
|
|
||||||
- the **`Modelfile` is not case sensitive**. In the examples, uppercase instructions are used to make it easier to distinguish it from arguments.
|
- the **`Modelfile` is not case sensitive**. In the examples, uppercase instructions are used to make it easier to distinguish it from arguments.
|
||||||
|
Loading…
x
Reference in New Issue
Block a user