We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 5530a22 commit 4749159Copy full SHA for 4749159
1 file changed
astrbot/dashboard/routes/conversation.py
@@ -148,7 +148,6 @@ async def upd_conv(self):
148
user_id = data.get("user_id")
149
cid = data.get("cid")
150
title = data.get("title")
151
- persona_id = data.get("persona_id", "")
152
153
if not user_id or not cid:
154
return Response().error("缺少必要参数: user_id 和 cid").__dict__
@@ -158,6 +157,9 @@ async def upd_conv(self):
158
157
)
159
if not conversation:
160
return Response().error("对话不存在").__dict__
+
161
+ persona_id = data.get("persona_id", conversation.persona_id)
162
163
if title is not None or persona_id is not None:
164
await self.conv_mgr.update_conversation(
165
unified_msg_origin=user_id,
0 commit comments