HEL-914: persona creation needs a real-scale timeout/token budget (first real run timed out at 30s/1200tok)
Co-authored-by: multica-agent <github@multica.ai>
This commit is contained in:
co-authored by
multica-agent
parent
8cd4265182
commit
236fe3d741
@@ -79,6 +79,7 @@ class Persona:
|
||||
'保留底色的解释空间、内在张力和自主喜好,不把倾向说成命定结论,习惯不是已发生的经历。'
|
||||
'不杜撰已发生的经历,不改写原始事实。返回 {"interpretation":"100至2400字的自主诠释",'
|
||||
'"habits":["3至5条小喜好习惯,每条最多160字"]}。', prompt_facts(self.store),
|
||||
timeout=120, max_tokens=4000,
|
||||
)
|
||||
result = PersonaResult.model_validate(raw)
|
||||
if any(not h.strip() or len(h) > 160 for h in result.habits):
|
||||
|
||||
Reference in New Issue
Block a user