halbot 1991.1.3 → 1991.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/README.md +14 -2
- package/package.json +1 -1
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
|
-
|
|
263
|
-
|
|
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.
|
|
4
|
+
"version": "1991.1.4",
|
|
5
5
|
"private": false,
|
|
6
6
|
"homepage": "https://github.com/Leask/halbot",
|
|
7
7
|
"type": "module",
|