aboutsummaryrefslogtreecommitdiff
path: root/llm/llama_instruct.go
blob: 64224f04a422e9fe0ef09923fe744e17aa036208 (plain)
1
2
3
4
5
6
7
8
9
10
11
package llm

import "fmt"

type LlamaInstruct struct {
	Content string `json:"content"`
}

func (m LlamaInstruct) ChatML() string {
	return fmt.Sprintf("[INST]\n%s\n[/INST]", m.Content)
}