This commit is contained in:
narawat lamaiin
2025-03-27 13:09:20 +07:00
parent 840b0e6205
commit 562f528c01
3 changed files with 87 additions and 26 deletions
+5 -5
View File
@@ -103,22 +103,22 @@ function formatLLMtext_phi4(name::T, text::T;
formattedtext =
if name == "system"
"""
<|im_start|>$name<|im_sep|>
<|system|>
$text
<|im_end|>
<|end|>
"""
else
"""
<|im_start|>$name<|im_sep|>
<|assistant|>
$text
<|im_end|>
<|end|>
"""
end
if assistantStarter
formattedtext *=
"""
<|im_start|>assistant<|im_sep|>
<|assistant|>
"""
end