utilitas 2001.1.76 → 2001.1.77
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/utilitas.lite.mjs +1 -1
- package/dist/utilitas.lite.mjs.map +1 -1
- package/lib/alan.mjs +1 -1
- package/lib/manifest.mjs +1 -1
- package/package.json +1 -1
package/lib/alan.mjs
CHANGED
|
@@ -1316,7 +1316,7 @@ const talk = async (request, options = {}) => {
|
|
|
1316
1316
|
request && response && session.messages.push(chat);
|
|
1317
1317
|
await setSession(sessionId, session, options);
|
|
1318
1318
|
// tts
|
|
1319
|
-
if ((options?.tts || session?.config?.tts)
|
|
1319
|
+
if ((options?.tts || session?.config?.tts) && response
|
|
1320
1320
|
&& Object.values(msgs).find(x => !x.audio?.length)) {
|
|
1321
1321
|
await ignoreErrFunc(async () => {
|
|
1322
1322
|
const ttsAi = await getAi(null, { select: { audio: true, fast: true } });
|
package/lib/manifest.mjs
CHANGED