From 68d952425d76678cc687624c3b89fc05bf4f57ae Mon Sep 17 00:00:00 2001 From: binary-husky <96192199+binary-husky@users.noreply.github.com> Date: Thu, 17 Oct 2024 14:27:06 +0800 Subject: [PATCH] add .value (#6) --- memoryscope/core/chat/api_memory_chat.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/memoryscope/core/chat/api_memory_chat.py b/memoryscope/core/chat/api_memory_chat.py index 1cd9332b..192a577e 100644 --- a/memoryscope/core/chat/api_memory_chat.py +++ b/memoryscope/core/chat/api_memory_chat.py @@ -164,7 +164,7 @@ def chat_with_memory(self, system_prompt_list.extend(temporary_memories) system_prompt_join = "\n".join([x.strip() for x in system_prompt_list]) - system_message = Message(role=MessageRoleEnum.SYSTEM, content=system_prompt_join) + system_message = Message(role=MessageRoleEnum.SYSTEM.value, content=system_prompt_join) chat_messages.append(system_message) # Include past conversation history in the message list