halbot 1990.1.114 → 1990.1.115
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 +2 -1
- package/index.mjs +3 -1
- package/package.json +2 -2
package/README.md
CHANGED
|
@@ -69,7 +69,8 @@ All supported configuration fields:
|
|
|
69
69
|
|
|
70
70
|
// OPTIONAL, string.
|
|
71
71
|
// Set this field if you need ChatGPT features.
|
|
72
|
-
"openaiApiKey": "[[OpenAI API Key]]"
|
|
72
|
+
"openaiApiKey": "[[OpenAI API Key]]",
|
|
73
|
+
"openaiEndpoint": "[[Custom OpenAI API endpoint]]",
|
|
73
74
|
|
|
74
75
|
// OPTIONAL, string.
|
|
75
76
|
// Set this field if you need Gemini features.
|
package/index.mjs
CHANGED
|
@@ -37,7 +37,9 @@ const init = async (options) => {
|
|
|
37
37
|
]);
|
|
38
38
|
if (options?.openaiApiKey) {
|
|
39
39
|
const apiKey = { apiKey: options.openaiApiKey };
|
|
40
|
-
await alan.init({
|
|
40
|
+
await alan.init({
|
|
41
|
+
provider: 'openai', ...apiKey, baseURL: options?.openaiEndpoint,
|
|
42
|
+
});
|
|
41
43
|
await speech.init({ ...apiKey, provider: 'OPENAI', ...speechOptions });
|
|
42
44
|
await image.init(apiKey);
|
|
43
45
|
ai['ChatGPT'] = { engine: 'CHATGPT' };
|
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.115",
|
|
5
5
|
"private": false,
|
|
6
6
|
"homepage": "https://github.com/Leask/halbot",
|
|
7
7
|
"type": "module",
|
|
@@ -46,7 +46,7 @@
|
|
|
46
46
|
"openai": "^4.24.1",
|
|
47
47
|
"telegraf": "^4.15.3",
|
|
48
48
|
"tesseract.js": "^5.0.4",
|
|
49
|
-
"utilitas": "^1995.2.
|
|
49
|
+
"utilitas": "^1995.2.43",
|
|
50
50
|
"youtube-transcript": "^1.0.6"
|
|
51
51
|
}
|
|
52
52
|
}
|