halbot 1994.1.2 → 1994.1.4

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 AI powered Telegram bot, which is simple design, easy to use, extendable and fun.",
4
- "version": "1994.1.2",
4
+ "version": "1994.1.4",
5
5
  "private": false,
6
6
  "homepage": "https://github.com/Leask/halbot",
7
7
  "type": "module",
@@ -33,7 +33,6 @@
33
33
  "@ffprobe-installer/ffprobe": "^2.1.2",
34
34
  "@google-cloud/speech": "^7.2.1",
35
35
  "@google-cloud/text-to-speech": "^6.4.0",
36
- "@google-cloud/vision": "^5.3.4",
37
36
  "@google/genai": "^1.30.0",
38
37
  "@mozilla/readability": "^0.6.0",
39
38
  "fluent-ffmpeg": "^2.1.3",
@@ -49,7 +48,7 @@
49
48
  "pgvector": "^0.2.1",
50
49
  "telegraf": "^4.16.3",
51
50
  "tesseract.js": "^6.0.1",
52
- "utilitas": "^2000.3.14",
51
+ "utilitas": "^2000.3.16",
53
52
  "youtube-transcript": "^1.2.1"
54
53
  }
55
54
  }
@@ -24,12 +24,10 @@ const action = async (ctx, next) => {
24
24
  const content = msgs[n]?.[options?.tts ? 'spoken' : 'text'] || '';
25
25
  pure.push(content);
26
26
  const ai = ais.find(x => x.id === n);
27
- let aiName = ai.name;
28
- const defModel = aiName.replace(/^.*\(.*\)$/, '$1');
29
- const curModel = msgs[n]?.model;
30
- if (defModel && curModel && defModel !== curModel) {
31
- aiName = aiName.replace(/^(.*\().*(\))$/, `$1${curModel}$2`);
32
- }
27
+ const aiName = ai.name.replace(
28
+ /^(.*\().*(\))$/,
29
+ `$1${msgs[n]?.model.replace(/^[^\/]*\//, '')}$2`
30
+ );
33
31
  packed.push(joinL2([
34
32
  ...options?.tts ? [] : [`${aiName}:`], content
35
33
  ]));