halbot 1990.1.115 → 1990.1.117

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 (3) hide show
  1. package/README.md +1 -0
  2. package/index.mjs +1 -1
  3. package/package.json +2 -2
package/README.md CHANGED
@@ -71,6 +71,7 @@ All supported configuration fields:
71
71
  // Set this field if you need ChatGPT features.
72
72
  "openaiApiKey": "[[OpenAI API Key]]",
73
73
  "openaiEndpoint": "[[Custom OpenAI API endpoint]]",
74
+ "chatGptModel": "[[Custom ChatGPT Model ID]]",
74
75
 
75
76
  // OPTIONAL, string.
76
77
  // Set this field if you need Gemini features.
package/index.mjs CHANGED
@@ -43,7 +43,7 @@ const init = async (options) => {
43
43
  await speech.init({ ...apiKey, provider: 'OPENAI', ...speechOptions });
44
44
  await image.init(apiKey);
45
45
  ai['ChatGPT'] = { engine: 'CHATGPT' };
46
- engines['CHATGPT'] = {};
46
+ engines['CHATGPT'] = { model: options?.chatGptModel };
47
47
  }
48
48
  if (options?.googleApiKey) {
49
49
  const apiKey = { apiKey: options.googleApiKey };
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.115",
4
+ "version": "1990.1.117",
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.43",
49
+ "utilitas": "^1995.2.46",
50
50
  "youtube-transcript": "^1.0.6"
51
51
  }
52
52
  }