From 236fe3d74184219ce8cd2dab93b8f6faa35d960a Mon Sep 17 00:00:00 2001 From: hel914-total-worker Date: Fri, 30 Oct 2026 10:19:08 +0800 Subject: [PATCH] HEL-914: persona creation needs a real-scale timeout/token budget (first real run timed out at 30s/1200tok) Co-authored-by: multica-agent --- src/cybergril/life/persona.py | 1 + 1 file changed, 1 insertion(+) diff --git a/src/cybergril/life/persona.py b/src/cybergril/life/persona.py index f71ff6a..8897bf3 100644 --- a/src/cybergril/life/persona.py +++ b/src/cybergril/life/persona.py @@ -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):