halbot 1991.1.3 → 1991.1.5

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/README.md CHANGED
@@ -259,10 +259,22 @@ const config = {
259
259
  // `storage` should Should be compatible with the `Map` interface:
260
260
  // https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Map
261
261
  storage: {
262
- get: async (key) => { /* return session object by chatId. */ },
263
- set: async (key, session) => { /* save session object by chatId. */ },
262
+ provider: [[POSTGRESQL || MARIADB || MYSQL || REDIS]],
263
+ get: async (key) => { /* Return session object by chatId. */ },
264
+ set: async (key, session) => { /* Save session object by chatId. */ },
265
+ query: async (topic) => { /* Search history and session by topic. */ },
266
+ upsert: async (event) => { /* Save event for history and session. */ },
264
267
  },
265
268
 
269
+ // OPTIONAL, function.
270
+ // Using customized embedding engine for history and session search.
271
+ embedding: async (text) => { /* Return vector embedding of the text. */ },
272
+
273
+ // OPTIONAL, array of string.
274
+ // Supported mime types of your vision-enabled AI models.
275
+ // If omitted, bot will use standard OCR and Object Detect to handle images.
276
+ supportedMimeTypes: [...[[mimeTypes]]],
277
+
266
278
  // OPTIONAL, object.
267
279
  // Adding extra commands.
268
280
  cmds: {
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": "1991.1.3",
4
+ "version": "1991.1.5",
5
5
  "private": false,
6
6
  "homepage": "https://github.com/Leask/halbot",
7
7
  "type": "module",
@@ -34,7 +34,7 @@
34
34
  "@google-cloud/aiplatform": "^3.9.0",
35
35
  "@google-cloud/speech": "^6.1.0",
36
36
  "@google-cloud/text-to-speech": "^5.0.1",
37
- "@google-cloud/vertexai": "^0.1.3",
37
+ "@google-cloud/vertexai": "^0.2.0",
38
38
  "@google-cloud/vision": "^4.0.2",
39
39
  "@mozilla/readability": "^0.5.0",
40
40
  "csv-parse": "^5.5.3",
@@ -49,7 +49,7 @@
49
49
  "pgvector": "^0.1.7",
50
50
  "telegraf": "^4.15.3",
51
51
  "tesseract.js": "^5.0.4",
52
- "utilitas": "^1995.2.58",
52
+ "utilitas": "^1995.2.59",
53
53
  "youtube-transcript": "^1.0.6"
54
54
  }
55
55
  }
@@ -23,6 +23,6 @@ export const { name, run, priority, func, cmds, help } = {
23
23
  'Example: /dream a cat',
24
24
  ]),
25
25
  cmds: {
26
- image: 'Use DALL-E to generate images: /dream `PROMPT`',
26
+ dream: 'Use DALL-E to generate images: /dream `PROMPT`',
27
27
  },
28
28
  };