From 2ccd57645adc3cd4f75577724ecc83f8279e340e Mon Sep 17 00:00:00 2001 From: digital-garbage <133010426+digital-garbage@users.noreply.github.com> Date: Fri, 15 May 2026 23:18:51 +0300 Subject: [PATCH] =?UTF-8?q?Increase=20advisor=20token=20limits:=20repair?= =?UTF-8?q?=20800=E2=86=921600,=20analysis=20fixed=20at=20600?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Co-Authored-By: Claude Sonnet 4.6 --- conditioning.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/conditioning.py b/conditioning.py index 47b2d818..566d4fc2 100644 --- a/conditioning.py +++ b/conditioning.py @@ -9066,7 +9066,7 @@ class FunPackVideoRefinerV2(FunPackVideoRefiner): ) analysis_raw, analysis_status = self._v2_generate_advisor_text( clip, analysis_prompt_text, seed=seed, image=image, thinking=thinking, - max_length=max(128, max_length // 2), + max_length=600, ) analysis, _ = self._v2_parse_advisor_response(analysis_raw, prompt_labels=("ANALYSIS",)) if not analysis and analysis_raw: @@ -9881,7 +9881,7 @@ class FunPackVideoRefinerV2(FunPackVideoRefiner): prompt_history["lora_weight_suggestions"] = suggestions return "LoRA suggestions: " + " | ".join(parts) - _V2_ADVISOR_MAX_TOKENS = 800 + _V2_ADVISOR_MAX_TOKENS = 1600 def refine_v2(self, positive_prompt, clip=None, rating="Missing action", refinement_key="", seed=0, reset_session=False, lora_stack=None, im_feeling_lucky=False, user_intent_prompt="",