halbot 1991.2.2 → 1991.2.3

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/index.mjs +2 -2
  2. package/package.json +2 -1
package/index.mjs CHANGED
@@ -40,9 +40,9 @@ const init = async (options) => {
40
40
  const apiKey = { apiKey: options?.openaiApiKey || options?.chatGptApiKey };
41
41
  await alan.init({ ...apiKey, ...options, provider: 'OPENAI' });
42
42
  ai['ChatGPT'] = {
43
- engine: 'ASSISTANT', priority: options?.chatGptPriority || 0, // CHATGPT
43
+ engine: 'CHATGPT', priority: options?.chatGptPriority || 0, // ASSISTANT
44
44
  };
45
- engines['ASSISTANT'] = { // CHATGPT
45
+ engines['CHATGPT'] = { // ASSISTANT
46
46
  // only support custom model while prompting
47
47
  model: options?.chatGptModel,
48
48
  };
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.2.2",
4
+ "version": "1991.2.3",
5
5
  "private": false,
6
6
  "homepage": "https://github.com/Leask/halbot",
7
7
  "type": "module",
@@ -42,6 +42,7 @@
42
42
  "ioredis": "^5.4.1",
43
43
  "js-tiktoken": "^1.0.12",
44
44
  "jsdom": "^24.0.0",
45
+ "mime-types": "^2.1.35",
45
46
  "mysql2": "^3.9.7",
46
47
  "office-text-extractor": "^3.0.3",
47
48
  "ollama": "^0.5.1",