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