fix conflict

This commit is contained in:
seehi 2024-08-09 16:15:00 +08:00
commit d2bd9055f3
29 changed files with 708 additions and 45 deletions

View file

@ -124,7 +124,9 @@ class MGXEnv(Environment):
if converted_msg.role not in ["system", "user", "assistant"]:
converted_msg.role = "assistant"
sent_from = converted_msg.metadata[AGENT] if AGENT in converted_msg.metadata else converted_msg.sent_from
converted_msg.content = f"from {sent_from} to {converted_msg.send_to}: {converted_msg.content}"
converted_msg.content = (
f"[Message] from {sent_from if sent_from else 'User'} to {converted_msg.send_to}: {converted_msg.content}"
)
return converted_msg
def __repr__(self):