fix: 修复迁移对话时的一些问题
This commit is contained in:
@@ -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 [],
|
||||
|
||||
@@ -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):
|
||||
|
||||
Reference in New Issue
Block a user