chore: clear lint and sync admin story views
This commit is contained in:
@@ -98,10 +98,14 @@ async def build_enhanced_memory_context(
|
||||
p_desc = f"{protagonist.get('name', '主角')} ({protagonist.get('personality', '')})"
|
||||
context_parts.append(f"主角设定:{p_desc}")
|
||||
|
||||
# 常驻角色
|
||||
if universe.recurring_characters:
|
||||
chars = [f"{c.get('name')} ({c.get('type')})" for c in universe.recurring_characters if isinstance(c, dict)]
|
||||
context_parts.append(f"已知伙伴:{'、'.join(chars)}")
|
||||
# 常驻角色
|
||||
if universe.recurring_characters:
|
||||
chars = [
|
||||
f"{c.get('name')} ({c.get('type')})"
|
||||
for c in universe.recurring_characters
|
||||
if isinstance(c, dict)
|
||||
]
|
||||
context_parts.append(f"已知伙伴:{'、'.join(chars)}")
|
||||
|
||||
# 成就
|
||||
if universe.achievements:
|
||||
|
||||
Reference in New Issue
Block a user