fix(all): LLM templates on production.

This commit is contained in:
me@rodrigorodriguez.com 2024-10-30 20:00:01 -03:00
parent 082b18a750
commit e7f377c887

View file

@ -651,6 +651,10 @@ export class KBService implements IGBKBService {
await min.conversationalService['playMarkdown'](min, answer, channel, step, GBMinService.userMobile(step));
} else if (answer.endsWith('.ogg') && process.env.AUDIO_DISABLED !== 'true') {
await this.playAudio(min, answer, channel, step, min.conversationalService);
} else if(answer.startsWith('![')){
const url = answer.match(/\((.*?)\)/)[1];
await this.showImage(min, min.conversationalService, step, url, channel)
} else {
await min.conversationalService.sendText(min, step, answer);
}