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

@ -124,6 +124,8 @@ class LLMProcessor:
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

@ -32,6 +32,10 @@ def main():
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
if config_manager.is_stt_enabled():