halbot 1992.1.4 → 1992.1.6

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/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "halbot",
3
3
  "description": "Just another `ChatGPT` / `Gemini` / `Mistral (by ollama)` Telegram bob, which is simple design, easy to use, extendable and fun.",
4
- "version": "1992.1.4",
4
+ "version": "1992.1.6",
5
5
  "private": false,
6
6
  "homepage": "https://github.com/Leask/halbot",
7
7
  "type": "module",
@@ -31,27 +31,27 @@
31
31
  "dependencies": {
32
32
  "@ffmpeg-installer/ffmpeg": "^1.1.0",
33
33
  "@ffprobe-installer/ffprobe": "^2.1.2",
34
- "@google-cloud/aiplatform": "^3.25.0",
34
+ "@google-cloud/aiplatform": "^3.26.0",
35
35
  "@google-cloud/speech": "^6.7.0",
36
36
  "@google-cloud/text-to-speech": "^5.3.0",
37
- "@google-cloud/vertexai": "^1.4.0",
38
- "@google-cloud/vision": "^4.3.0",
37
+ "@google-cloud/vertexai": "^1.4.1",
38
+ "@google-cloud/vision": "^4.3.1",
39
39
  "@mozilla/readability": "^0.5.0",
40
40
  "csv-parse": "^5.5.6",
41
41
  "fluent-ffmpeg": "^2.1.3",
42
42
  "ioredis": "^5.4.1",
43
- "js-tiktoken": "^1.0.12",
43
+ "js-tiktoken": "^1.0.14",
44
44
  "jsdom": "^24.1.1",
45
45
  "mime": "^4.0.4",
46
46
  "mysql2": "^3.11.0",
47
47
  "office-text-extractor": "^3.0.3",
48
- "ollama": "^0.5.6",
49
- "openai": "^4.53.2",
48
+ "ollama": "^0.5.8",
49
+ "openai": "^4.56.0",
50
50
  "pg": "^8.12.0",
51
51
  "pgvector": "^0.2.0",
52
52
  "telegraf": "^4.16.3",
53
53
  "tesseract.js": "^5.1.0",
54
- "utilitas": "^1997.1.6",
54
+ "utilitas": "^1997.1.7",
55
55
  "youtube-transcript": "^1.2.1"
56
56
  }
57
57
  }
@@ -69,7 +69,7 @@ const action = async (ctx, next) => {
69
69
  createdAt: now, touchedAt: now, context: {},
70
70
  });
71
71
  ctx.carry.threadInfo.push(CREATED
72
- + getLabel(findSession(ctx.session.sessionId)));
72
+ + `\`${getLabel(findSession(ctx.session.sessionId))}\``);
73
73
  await ctx.clear();
74
74
  }
75
75
  ctx.carry.sessionId = ctx.session.sessionId;
@@ -106,17 +106,19 @@ const action = async (ctx, next) => {
106
106
  });
107
107
  return await ok(message, { lastMessageId: lastMsgId, buttons });
108
108
  };
109
- const switched = async (preTitle, newThread) => await ok(`${preTitle
110
- ? `${END} Thread ended: \`${preTitle}\`\n\n` : ''}`
109
+ const switched = async (preTitle, newThread) => await ok(
110
+ `${preTitle ? `${END} Thread ended: \`${preTitle}\`\n\n` : ''}`
111
111
  + (newThread ? CREATED : SWITCHED)
112
- + getLabel(findSession(ctx.session.sessionId)), { pageBreak: true });
112
+ + `\`${getLabel(findSession(ctx.session.sessionId))}\``,
113
+ { pageBreak: true }
114
+ );
113
115
  // handle commands
114
116
  switch (ctx.cmd?.cmd) {
115
117
  case 'clearkb':
116
118
  return await ok(EMIJI_FINISH, { keyboards: [] });
117
119
  case 'clear':
118
- ctx.carry.threadInfo.push(`${CLR} Thread cleared: `
119
- + getLabel(findSession(ctx.session.sessionId)));
120
+ ctx.carry.threadInfo.push(`${CLR} Thread cleared: \``
121
+ + `${getLabel(findSession(ctx.session.sessionId))}\``);
120
122
  await ctx.clear();
121
123
  break;
122
124
  case 'clearall':