fix: 修正identity_detail的引用以确保正确处理身份细节

This commit is contained in:
春河晴 committed 2025-04-17 15:20:33 +09:00
1 parent 51af1ef4ce
commit be6699340a
1 file changed
+1 -1
+1 -1
View File
@@ -102,7 +102,7 @@ class Identity:
random.shuffle(identity_detail)
prompt_identity += identity_detail[0]
elif level == 2:
for detail in identity_detail:
for detail in self.identity_detail:
prompt_identity += f",{detail}"
prompt_identity += "。"
return prompt_identity