utilitas 1999.1.62 → 1999.1.63
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 +3 -3
- package/lib/manifest.mjs +1 -1
- package/package.json +1 -1
package/lib/alan.mjs
CHANGED
|
@@ -784,8 +784,8 @@ const buildPrompts = async (model, input, options = {}) => {
|
|
|
784
784
|
systemPrompt, history, content, prompt, _system, _model, _assistant,
|
|
785
785
|
_history,
|
|
786
786
|
] = [
|
|
787
|
-
null, null, input
|
|
788
|
-
{ role:
|
|
787
|
+
null, null, input, null, { role: system }, { role: MODEL },
|
|
788
|
+
{ role: assistant }, null,
|
|
789
789
|
];
|
|
790
790
|
options.systemPrompt = options.systemPrompt || INSTRUCTIONS;
|
|
791
791
|
options.attachments = (
|
|
@@ -1390,7 +1390,7 @@ const resetSession = async (sessionId, options) => {
|
|
|
1390
1390
|
|
|
1391
1391
|
const talk = async (input, options = {}) => {
|
|
1392
1392
|
let [chat, sessionId] =
|
|
1393
|
-
[{ request: input
|
|
1393
|
+
[{ request: input }, options.sessionId || newSessionId()];
|
|
1394
1394
|
const session = await getSession(sessionId, options);
|
|
1395
1395
|
const resp = await prompt(input, {
|
|
1396
1396
|
messages: session.messages, log: true, ...options,
|
package/lib/manifest.mjs
CHANGED