From 6f03c60c59d196fcbb8aa818f387a0d6028ce28d Mon Sep 17 00:00:00 2001 From: narawat lamaiin Date: Sun, 28 Apr 2024 08:58:20 +0700 Subject: [PATCH] update --- src/util.jl | 1 + 1 file changed, 1 insertion(+) diff --git a/src/util.jl b/src/util.jl index 031281a..8f736ae 100644 --- a/src/util.jl +++ b/src/util.jl @@ -264,6 +264,7 @@ function formatLLMtext(messages::Vector{Dict{Symbol, T}}, str *= f(t[:name], t[:text]) end + # add <|assistant|> so that the model don't generate it and I don't need to clean it up later if formatname == "phi3instruct" str *= "<|assistant|>\n" end