fix: accept any position for --test-llm flag

This commit is contained in:
Jan Häusler 2025-07-03 01:47:15 +02:00
parent 7e9d3a9fdb
commit b5fb3642bb

View file

@ -33,7 +33,8 @@ def main():
llm_processor = LLMProcessor(script_path) llm_processor = LLMProcessor(script_path)
# if test flag set from args, process text # 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")) llm_processor.process_text("hello LLM", lambda result: print(f"\nLLM Response:\n{result}\n"))
# Initialize speech-to-text if enabled # Initialize speech-to-text if enabled