aboutsummaryrefslogtreecommitdiff
path: root/llm
diff options
context:
space:
mode:
authorXe Iaso <me@xeiaso.net>2024-06-16 19:06:50 -0400
committerXe Iaso <me@xeiaso.net>2024-06-16 19:06:50 -0400
commit5811951ae0cd92810eee1d6e9f9132ed33a74595 (patch)
tree65fc8a390aaae1bbd19fb54a7fe312690b5e73a4 /llm
parent6fbb0c3894bb3dfff5fb5487ac581f9c942a97bc (diff)
downloadx-5811951ae0cd92810eee1d6e9f9132ed33a74595.tar.xz
x-5811951ae0cd92810eee1d6e9f9132ed33a74595.zip
per-user output
Signed-off-by: Xe Iaso <me@xeiaso.net>
Diffstat (limited to 'llm')
-rw-r--r--llm/chatml.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/llm/chatml.go b/llm/chatml.go
index fdc54cc..4690563 100644
--- a/llm/chatml.go
+++ b/llm/chatml.go
@@ -32,5 +32,5 @@ func (m Message) ChatML() string {
if m.Content == "" {
return fmt.Sprintf("<|im_start|>%s\n", m.Role)
}
- return fmt.Sprintf("<|im_start|>%s\n%s<|im_end|>", m.Role, m.Content)
+ return fmt.Sprintf("<|im_start|>%s\n%s\n<|im_end|>", m.Role, m.Content)
}