fix: 修复迁移对话时的一些问题

This commit is contained in:
Soulter
2025-08-17 23:44:08 +08:00
parent e95ad4049b
commit b2e39b9701
2 changed files with 2 additions and 2 deletions
+1 -1
View File
@@ -68,7 +68,7 @@ async def migration_conversation_table(
platform_id = get_platform_id(
platform_id_map, session.platform_name
)
session.platform_name = platform_id # 更新平台名称为新的 ID
session.platform_id = platform_id # 更新平台名称为新的 ID
conv_v2 = ConversationV2(
user_id=str(session),
content=json.loads(conv.history) if conv.history else [],
+1 -1
View File
@@ -52,7 +52,7 @@ class PersonaManager:
return DEFAULT_PERSONALITY
try:
return next(p for p in self.personas_v3 if p["name"] == default_persona_id)
except ValueError:
except Exception:
return DEFAULT_PERSONALITY
async def delete_persona(self, persona_id: str):