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/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 || ATTACHMENTS, null, // length hack: ATTACHMENTS
788
- { role: system }, { role: MODEL }, { role: assistant }, null,
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 || ATTACHMENTS }, options.sessionId || newSessionId()];
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
@@ -1,7 +1,7 @@
1
1
  const manifest = {
2
2
  "name": "utilitas",
3
3
  "description": "Just another common utility for JavaScript.",
4
- "version": "1999.1.62",
4
+ "version": "1999.1.63",
5
5
  "private": false,
6
6
  "homepage": "https://github.com/Leask/utilitas",
7
7
  "main": "index.mjs",
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "utilitas",
3
3
  "description": "Just another common utility for JavaScript.",
4
- "version": "1999.1.62",
4
+ "version": "1999.1.63",
5
5
  "private": false,
6
6
  "homepage": "https://github.com/Leask/utilitas",
7
7
  "main": "index.mjs",