Add AI post-processing prompt
This commit is contained in:
parent
b296491703
commit
cda89923ce
4 changed files with 269 additions and 1 deletions
|
|
@ -218,7 +218,8 @@ func (d *Daemon) stopAndProcess(reason string) {
|
|||
}
|
||||
d.log.Printf("transcript: %s", text)
|
||||
|
||||
if d.ai != nil && d.cfg.AIEnabled {
|
||||
if d.cfg.AIEnabled && d.ai != nil {
|
||||
d.log.Printf("ai enabled")
|
||||
d.setState(StateProcessing)
|
||||
aiCtx, cancel := context.WithTimeout(context.Background(), time.Duration(d.cfg.AITimeoutSec)*time.Second)
|
||||
cleaned, err := d.ai.Process(aiCtx, text)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue