mirror of
https://github.com/ollama/ollama.git
synced 2025-05-11 10:26:53 +02:00
Merge pull request #10290 from ollama/drifkin/template-highlighting
docs: change more template blocks to have syntax highlighting
This commit is contained in:
commit
fbe7039618
1 changed files with 2 additions and 2 deletions
|
@ -12,7 +12,7 @@ A basic Go template consists of three main parts:
|
||||||
|
|
||||||
Here's an example of a simple chat template:
|
Here's an example of a simple chat template:
|
||||||
|
|
||||||
```gotmpl
|
```go
|
||||||
{{- range .Messages }}
|
{{- range .Messages }}
|
||||||
{{ .Role }}: {{ .Content }}
|
{{ .Role }}: {{ .Content }}
|
||||||
{{- end }}
|
{{- end }}
|
||||||
|
@ -162,6 +162,6 @@ CodeLlama [7B](https://ollama.com/library/codellama:7b-code) and [13B](https://o
|
||||||
|
|
||||||
Codestral [22B](https://ollama.com/library/codestral:22b) supports fill-in-middle.
|
Codestral [22B](https://ollama.com/library/codestral:22b) supports fill-in-middle.
|
||||||
|
|
||||||
```gotmpl
|
```go
|
||||||
[SUFFIX]{{ .Suffix }}[PREFIX] {{ .Prompt }}
|
[SUFFIX]{{ .Suffix }}[PREFIX] {{ .Prompt }}
|
||||||
```
|
```
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue