From 7e9d3a9fdb71ded8335f70b5e133e321f20434db Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jan=20H=C3=A4usler?= Date: Thu, 3 Jul 2025 01:46:09 +0200 Subject: [PATCH] feat: add llm test flag --- llm_processor.py | 2 ++ main.py | 4 ++++ 2 files changed, 6 insertions(+) diff --git a/llm_processor.py b/llm_processor.py index 5983f36..429b474 100644 --- a/llm_processor.py +++ b/llm_processor.py @@ -123,6 +123,8 @@ class LLMProcessor: return self.is_processing = True + + print("trace: creating task for text processing") # Start async processing in background task = self.loop.create_task(self._process_text_async(text, callback)) diff --git a/main.py b/main.py index 577743f..3d502aa 100644 --- a/main.py +++ b/main.py @@ -31,6 +31,10 @@ def main(): print("Initializing LLM processor...") script_path = os.path.abspath(__file__) llm_processor = LLMProcessor(script_path) + + # if test flag set from args, process text + if sys.argv[1] == "--test-llm": + llm_processor.process_text("hello LLM", lambda result: print(f"\nLLM Response:\n{result}\n")) # Initialize speech-to-text if enabled stt = None