feat: add llm test flag

This commit is contained in:
Jan Häusler 2025-07-03 01:46:09 +02:00
parent 6bf446f43d
commit 7e9d3a9fdb
2 changed files with 6 additions and 0 deletions

View file

@ -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))

View file

@ -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