Tidy AI logging
This commit is contained in:
parent
2b6a565d85
commit
34ecdcbfde
1 changed files with 3 additions and 4 deletions
|
|
@ -46,7 +46,6 @@ class Daemon:
|
|||
if cfg.ai_enabled:
|
||||
self.ai = build_processor(
|
||||
AIConfig(
|
||||
provider=cfg.ai_provider,
|
||||
model=cfg.ai_model,
|
||||
temperature=cfg.ai_temperature,
|
||||
system_prompt_file=cfg.ai_system_prompt_file,
|
||||
|
|
@ -128,11 +127,11 @@ class Daemon:
|
|||
self.set_state(State.TRANSCRIBING)
|
||||
text = self.stt.transcribe(record.wav_path)
|
||||
except Exception as exc:
|
||||
logging.error("whisper failed: %s", exc)
|
||||
logging.error("stt failed: %s", exc)
|
||||
self.set_state(State.IDLE)
|
||||
return
|
||||
|
||||
logging.info("transcript: %s", text)
|
||||
logging.info("stt: %s", text)
|
||||
|
||||
if self.ai:
|
||||
self.set_state(State.PROCESSING)
|
||||
|
|
@ -141,7 +140,7 @@ class Daemon:
|
|||
except Exception as exc:
|
||||
logging.error("ai process failed: %s", exc)
|
||||
|
||||
logging.info("output: %s", text)
|
||||
logging.info("processed: %s", text)
|
||||
|
||||
try:
|
||||
self.set_state(State.OUTPUTTING)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue