From 9defa4332ea48eb98e0033ef78b286d79c5b3bc9 Mon Sep 17 00:00:00 2001 From: liunux4odoo Date: Wed, 13 Sep 2023 10:12:31 +0800 Subject: [PATCH] fix minimax api history error --- server/model_workers/minimax.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/server/model_workers/minimax.py b/server/model_workers/minimax.py index a182ae3..895c85a 100644 --- a/server/model_workers/minimax.py +++ b/server/model_workers/minimax.py @@ -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