mirror of
https://github.com/FoundationAgents/MetaGPT.git
synced 2026-06-08 15:05:17 +02:00
change re format
This commit is contained in:
parent
f3d9b8e767
commit
a0441c897e
1 changed files with 1 additions and 1 deletions
|
|
@ -300,7 +300,7 @@ class RoleZero(Role):
|
|||
system_msgs=[QUICK_RESPONSE_SYSTEM_PROMPT.format(role_info=self._get_prefix())],
|
||||
)
|
||||
# If the answer contains the substring '[Message] from A to B:', remove it.
|
||||
pattern = r"\[Message\] from .* to .*:\s*"
|
||||
pattern = r"\[Message\] from .+? to .+?:\s*"
|
||||
answer = re.sub(pattern, "", answer, count=1)
|
||||
elif "SEARCH" in intent_result:
|
||||
query = "\n".join(str(msg) for msg in memory)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue