mirror of
https://github.com/RYDE-WORK/Langchain-Chatchat.git
synced 2026-01-19 21:37:20 +08:00
fix minimax api history error
This commit is contained in:
parent
8b040620de
commit
9defa4332e
@ -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
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user