utilitas 2001.1.107 → 2001.1.109
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/lib/memory.mjs +1 -1
- package/package.json +1 -1
package/lib/alan.mjs
CHANGED
|
@@ -1419,7 +1419,7 @@ const talk = async (request, options = {}) => {
|
|
|
1419
1419
|
request && response && session.messages.push(chat);
|
|
1420
1420
|
await setSession(sessionId, session, options);
|
|
1421
1421
|
// tts
|
|
1422
|
-
if ((options?.tts || session?.
|
|
1422
|
+
if ((options?.settings?.tts || session?.settings?.tts) && result?.spoken
|
|
1423
1423
|
&& Object.values(msgs).find(x => !x.audio?.length)) {
|
|
1424
1424
|
await ignoreErrFunc(async () => {
|
|
1425
1425
|
const ttsAi = await getAi(null, { select: { audio: true, fast: true } });
|
package/lib/manifest.mjs
CHANGED
package/lib/memory.mjs
CHANGED
|
@@ -57,7 +57,7 @@ const handleResult = (resp, options) => {
|
|
|
57
57
|
let result = {};
|
|
58
58
|
if (Array.isArray(resp)) {
|
|
59
59
|
for (let i in resp) {
|
|
60
|
-
result[resp[i].key.split('/').pop()] = resp[i].value;
|
|
60
|
+
result[resp[i].key.split('/').pop().toLowerCase()] = resp[i].value;
|
|
61
61
|
}
|
|
62
62
|
} else { result = resp?.value; }
|
|
63
63
|
resp = result;
|