From b5fb3642bb393c2f8e08477f8ebf108fe6fc6311 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jan=20H=C3=A4usler?= Date: Thu, 3 Jul 2025 01:47:15 +0200 Subject: [PATCH] fix: accept any position for --test-llm flag --- main.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/main.py b/main.py index 3d502aa..92be22d 100644 --- a/main.py +++ b/main.py @@ -33,7 +33,8 @@ def main(): llm_processor = LLMProcessor(script_path) # if test flag set from args, process text - if sys.argv[1] == "--test-llm": + print("trace: sys.argv", sys.argv) + if any("--test-llm" in arg for arg in sys.argv): llm_processor.process_text("hello LLM", lambda result: print(f"\nLLM Response:\n{result}\n")) # Initialize speech-to-text if enabled