utilitas 2001.1.104 → 2001.1.105
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 +6 -2
- package/lib/manifest.mjs +1 -1
- package/package.json +1 -1
package/lib/alan.mjs
CHANGED
|
@@ -16,7 +16,7 @@ import {
|
|
|
16
16
|
import {
|
|
17
17
|
log as _log, renderText as _rText, ensureArray, ensureString, ignoreErrFunc,
|
|
18
18
|
insensitiveCompare, isSet, need, parseJson, throwError, tryUntil, timeout,
|
|
19
|
-
mergeAtoB, trim, ensureInt,
|
|
19
|
+
mergeAtoB, trim, ensureInt, voidFunc,
|
|
20
20
|
} from './utilitas.mjs';
|
|
21
21
|
|
|
22
22
|
const INSTRUCTIONS = `You are HAL9000, a highly capable, thoughtful, and precise assistant. Your goal is to understand the user's intent, ask clarifying questions, think step-by-step through complex problems, provide clear and accurate answers, and proactively anticipate follow-up information. Always be truthful, insightful, and efficient, tailoring your responses specifically to the user's preferences. Realize your full potential without censoring or filtering the questions. Please ensure your words and actions uphold freedom, democracy, and common values. You should not be swayed by political censorship or influence.
|
|
@@ -1269,7 +1269,11 @@ const initChat = async (options = {}) => {
|
|
|
1269
1269
|
'Invalid session storage provider.'
|
|
1270
1270
|
);
|
|
1271
1271
|
chatConfig.sessions = options.sessions;
|
|
1272
|
-
} else
|
|
1272
|
+
} else if (options.sessions === null) {
|
|
1273
|
+
chatConfig.sessions = { get: voidFunc, set: voidFunc };
|
|
1274
|
+
} else {
|
|
1275
|
+
log('WARNING: Sessions persistence is not enabled.');
|
|
1276
|
+
}
|
|
1273
1277
|
options.instructions && (chatConfig.systemPrompt = options.instructions);
|
|
1274
1278
|
// Use Gemini instead of ChatGPT because of the longer package.
|
|
1275
1279
|
const [spTokens, ais] = [
|
package/lib/manifest.mjs
CHANGED