This commit is contained in:
narawat lamaiin
2024-08-02 06:47:28 +07:00
parent 9112f0767d
commit 51f91e8492
2 changed files with 4 additions and 4 deletions

View File

@@ -1217,11 +1217,11 @@ function generatechat(memory::Dict, chathistory::Vector, text2textInstructLLM::F
"""
context_1 = length(memory[:shortmem]) > 0 ? vectorOfDictToText(memory[:shortmem], withkey=false) : "None"
chathistory = vectorOfDictToText(a.chathistory)
_chathistory = vectorOfDictToText(chathistory)
usermsg =
"""
Context: $context_1
Your earlier conversation with the user: $chathistory)
Your earlier conversation with the user: $_chathistory)
Your thoughts: $(memory[:chatbox])
"""