mirror of
https://github.com/agentscope-ai/ReMe.git
synced 2026-09-07 08:26:06 +00:00
fix bug when chat_messages is empty
* update version * fix bug when chat_messages is empty
This commit is contained in:
parent
a8d5563b18
commit
a41e616650
4 changed files with 5 additions and 2703 deletions
|
|
@ -1,5 +1,5 @@
|
|||
""" Version of MemoryScope."""
|
||||
__version__ = "0.1.1.0"
|
||||
__version__ = "0.1.0.5"
|
||||
import fire
|
||||
|
||||
from memoryscope.core.config.arguments import Arguments # noqa: F401
|
||||
|
|
|
|||
|
|
@ -67,6 +67,9 @@ class MemoryBaseWorker(BaseWorker, metaclass=ABCMeta):
|
|||
result = self.get_workflow_context(CHAT_MESSAGES_SCATTER)
|
||||
|
||||
if not result:
|
||||
if not self.chat_messages:
|
||||
return []
|
||||
|
||||
if isinstance(self.chat_messages[0], list):
|
||||
chat_messages: List[Message] = []
|
||||
for messages in self.chat_messages:
|
||||
|
|
|
|||
2701
poetry.lock
generated
2701
poetry.lock
generated
File diff suppressed because it is too large
Load diff
|
|
@ -10,7 +10,7 @@ skip = "./examples,*.csv,*.html,*.json,*.jsonl,*.pdf,*.txt,*.ipynb"
|
|||
|
||||
[tool.poetry]
|
||||
name = "memoryscope"
|
||||
version = "0.1.1.0"
|
||||
version = "0.1.0.5"
|
||||
description = "MemoryScope for LLM Agentic Application."
|
||||
authors = [
|
||||
"jinli <jinli.yl@alibaba-inc.com>",
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue