halbot 1990.1.123 → 1990.1.125
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/index.mjs +1 -1
- package/package.json +4 -1
package/index.mjs
CHANGED
|
@@ -38,7 +38,7 @@ const init = async (options) => {
|
|
|
38
38
|
// init ai engines
|
|
39
39
|
if (options?.openaiApiKey || options?.chatGptApiKey) {
|
|
40
40
|
const apiKey = { apiKey: options?.openaiApiKey || options?.chatGptApiKey };
|
|
41
|
-
await alan.init({ provider: 'openai'
|
|
41
|
+
await alan.init({ ...apiKey, ...options, provider: 'openai' });
|
|
42
42
|
ai['ChatGPT'] = {
|
|
43
43
|
engine: 'CHATGPT', priority: options?.chatGptPriority || 0,
|
|
44
44
|
};
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "halbot",
|
|
3
3
|
"description": "Just another ChatGPT/Bing Chat Telegram bob, which is simple design, easy to use, extendable and fun.",
|
|
4
|
-
"version": "1990.1.
|
|
4
|
+
"version": "1990.1.125",
|
|
5
5
|
"private": false,
|
|
6
6
|
"homepage": "https://github.com/Leask/halbot",
|
|
7
7
|
"type": "module",
|
|
@@ -40,10 +40,13 @@
|
|
|
40
40
|
"csv-parse": "^5.5.3",
|
|
41
41
|
"fluent-ffmpeg": "^2.1.2",
|
|
42
42
|
"ioredis": "^5.3.2",
|
|
43
|
+
"js-tiktoken": "^1.0.8",
|
|
43
44
|
"jsdom": "^23.0.1",
|
|
44
45
|
"mysql2": "^3.6.5",
|
|
45
46
|
"office-text-extractor": "^3.0.2",
|
|
46
47
|
"openai": "^4.24.1",
|
|
48
|
+
"pg": "^8.11.3",
|
|
49
|
+
"pgvector": "^0.1.7",
|
|
47
50
|
"telegraf": "^4.15.3",
|
|
48
51
|
"tesseract.js": "^5.0.4",
|
|
49
52
|
"utilitas": "^1995.2.54",
|