fix minimax api history error

This commit is contained in:
liunux4odoo 2023-09-13 10:12:31 +08:00
parent 8b040620de
commit 9defa4332e
1 changed files with 1 additions and 1 deletions

View File

@ -40,7 +40,7 @@ class MiniMaxWorker(ApiModelWorker):
if msg.startswith(user_start):
result.append({"sender_type": "USER", "text": msg[len(user_start):].strip()})
elif msg.startswith(bot_start):
result.append({"sender_type": "BOT", "text": msg[len(bot_start)].strip()})
result.append({"sender_type": "BOT", "text": msg[len(bot_start):].strip()})
else:
raise RuntimeError(f"unknow role in msg: {msg}")
return result