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