From fcd72afe5616301d8657fd5e75ed74f2f7419606 Mon Sep 17 00:00:00 2001 From: KT313 <73772644+KT313@users.noreply.github.com> Date: Wed, 23 Oct 2024 08:02:30 +0200 Subject: [PATCH] addition to skip output modifier if ppl_logits_processor == None so new chat can be created when no model loaded --- extensions/perplexity_colors/script.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/extensions/perplexity_colors/script.py b/extensions/perplexity_colors/script.py index c5fa724a..7211901b 100644 --- a/extensions/perplexity_colors/script.py +++ b/extensions/perplexity_colors/script.py @@ -95,7 +95,7 @@ def output_modifier(text): global ppl_logits_processor # t0 = time.time() - if not params['active']: + if not params['active'] or ppl_logits_processor == None: return text # TODO: It's probably more efficient to do this above rather than modifying all these lists