feat: add llm test flag
This commit is contained in:
parent
6bf446f43d
commit
7e9d3a9fdb
2 changed files with 6 additions and 0 deletions
|
|
@ -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))
|
||||
|
||||
|
|
|
|||
4
main.py
4
main.py
|
|
@ -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():
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue