utilitas 2001.1.66 → 2001.1.67

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
@@ -1199,9 +1199,7 @@ const assertSessionId = sessionId => {
1199
1199
 
1200
1200
  const getSession = async (sessionId, options) => {
1201
1201
  sessionId = assertSessionId(sessionId);
1202
- return defaultSession(await chatConfig.sessions.get(
1203
- sessionId, options?.prompt, options
1204
- ));
1202
+ return defaultSession(await chatConfig.sessions.get(sessionId, options));
1205
1203
  };
1206
1204
 
1207
1205
  const setSession = async (sessionId, session, options) => {
@@ -1268,7 +1266,7 @@ const talk = async (request, options = {}) => {
1268
1266
  request = joinL2([ensureString(request), ...(options.collected || []).filter(
1269
1267
  x => x.type !== ATTACHMENT && String.isString(x.content)
1270
1268
  ).map(x => x.content)]);
1271
- const session = await getSession(sessionId, options);
1269
+ const session = await getSession(sessionId, { ...options, prompt: request });
1272
1270
  const stream = options.stream;
1273
1271
  const packMsg = (opts) => ({
1274
1272
  text: Object.values(msgs).find(x => x.text) ? joinL2(options.aiId.map(n => {
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": "2001.1.66",
4
+ "version": "2001.1.67",
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": "2001.1.66",
4
+ "version": "2001.1.67",
5
5
  "private": false,
6
6
  "homepage": "https://github.com/Leask/utilitas",
7
7
  "main": "index.mjs",