add removeLatestMsg
This commit is contained in:
@@ -72,6 +72,12 @@ function clearMessage(a::agent)
|
||||
end
|
||||
end
|
||||
|
||||
function removeLatestMsg(a::agent)
|
||||
if length(a.messages) > 1
|
||||
pop!(a.messages)
|
||||
end
|
||||
end
|
||||
|
||||
function generatePromt(a::agent,
|
||||
userToken::String=" [/INST]", assistantToken=" [INST]",
|
||||
systemToken="[INST]<<SYS>> content <</SYS>>")
|
||||
|
||||
Reference in New Issue
Block a user