Get up and running with Kimi, GLM, MiniMax, DeepSeek, gpt-oss, Qwen, Gemma and other models.
docs: add syntax highlighting on Go template code blocks (#8215)
CIIDMikeb68e8e5727d7
diff --git a/docs/template.md b/docs/template.mdindex bd367e91c..47e1399a2 100644--- a/docs/template.md+++ b/docs/template.md@@ -111,7 +111,7 @@ Keep the following tips and best practices in mind when working with Go templateChatML is a popular template format. It can be used for models such as Databrick's DBRX, Intel's Neural Chat, and Microsoft's Orca 2.-```gotmpl+```go{{- range .Messages }}<|im_start|>{{ .Role }}{{ .Content }}<|im_end|>{{ end }}<|im_start|>assistant@@ -125,7 +125,7 @@ Tools support can be added to a model by adding a `{{ .Tools }}` node to the temMistral v0.3 and Mixtral 8x22B supports tool calling.-```gotmpl+```go{{- range $index, $_ := .Messages }}{{- if eq .Role "user" }}{{- if and (le (len (slice $.Messages $index)) 2) $.Tools }}[AVAILABLE_TOOLS] {{ json $.Tools }}[/AVAILABLE_TOOLS]@@ -151,7 +151,7 @@ Fill-in-middle support can be added to a model by adding a `{{ .Suffix }}` nodeCodeLlama [7B](https://ollama.com/library/codellama:7b-code) and [13B](https://ollama.com/library/codellama:13b-code) code completion models support fill-in-middle.-```gotmpl+```go<PRE> {{ .Prompt }} <SUF>{{ .Suffix }} <MID>```