halbot 1991.1.2 → 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.
Files changed (2) hide show
  1. package/README.md +16 -4
  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
- 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: {
@@ -314,8 +326,8 @@ And remember, you can always use the codes in this repo to build your own `halbo
314
326
 
315
327
  ## Foundations
316
328
 
317
- - `halbot` uses my other project [utilitas](https://github.com/Leask/utilitas) as the basic framework to handle all the dirty work.
318
- - `halbot` uses [node-chatgpt-api](https://github.com/waylaidwanderer/node-chatgpt-api) to communicate with the AI engines.
329
+ - `halbot` uses my other project [🧰 utilitas](https://github.com/Leask/utilitas) as the basic framework to handle all the dirty work.
330
+ - `halbot` uses [🤖 utilitas.alan](https://github.com/Leask/utilitas/blob/master/lib/alan.mjs) to communicate with the AI engines.
319
331
 
320
332
  ## Contact me
321
333
 
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.2",
4
+ "version": "1991.1.4",
5
5
  "private": false,
6
6
  "homepage": "https://github.com/Leask/halbot",
7
7
  "type": "module",