halbot 1992.1.17 → 1992.1.19

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 +22 -36
  2. package/package.json +1 -1
package/README.md CHANGED
@@ -41,8 +41,9 @@ alt="Halbot live demo" width="240" height="180" border="10" /></a>
41
41
  - Built-in support parsing webpages, `YouTube` videos, PDFs, images, Office documents, code files, text files...
42
42
  - Realtime stream-style response, no more waiting.
43
43
  - Multimodal support for all supported models.
44
+ - Automatically selects the optimal model for the task.
44
45
  - Audio input and output support for supported models, not just TTS.
45
- - Google `Search as a tool` support for Gemini 2.0.
46
+ - Google `Search as a tool` support for [Gemini 2.0](https://ai.google.dev/gemini-api/docs/models/gemini-v2).
46
47
  - Markdown rendering
47
48
  - Reference rendering
48
49
  - Code block rendering, developers friendly.
@@ -72,14 +73,22 @@ All supported configuration fields:
72
73
  // REQUIRED, string.
73
74
  "telegramToken": "[[Telegram Bot API Token]]",
74
75
 
75
- // Set some of these fields if you need ChatGPT, Whisper, Embedding features.
76
+ // Set some of these fields if you need Google's Gemini, TTS, STT, OCR, OBJECT_DETECT, Embedding features.
77
+ // OPTIONAL, string.
78
+ "googleApiKey": "[[Google Cloud / Gemini API Key]]",
79
+ // OPTIONAL, string, default: "gemini-pro-vision".
80
+ "geminiModel": "[[Custom Gemini Model ID]]",
81
+ // OPTIONAL, integer, default: 0.
82
+ "geminiPriority": "[[Custom Gemini Priority]]",
83
+
84
+ // Set some of these fields if you need OpenAI's ChatGPT, Whisper, Embedding features.
76
85
  // OPTIONAL, string.
77
86
  "openaiApiKey": "[[OpenAI API Key]]",
78
87
  // OPTIONAL, string.
79
88
  "openaiEndpoint": "[[Custom OpenAI API endpoint]]",
80
89
  // OPTIONAL, string, default: "gpt-3.5-turbo".
81
90
  "chatGptModel": "[[Custom ChatGPT Model ID]]",
82
- // OPTIONAL, integer, default: 0.
91
+ // OPTIONAL, integer, default: 1.
83
92
  "chatGptPriority": "[[Custom ChatGPT Priority]]",
84
93
 
85
94
  // Set some of these fields if you need to use custom ChatGPT API.
@@ -88,37 +97,31 @@ All supported configuration fields:
88
97
  // OPTIONAL, string.
89
98
  "chatGptEndpoint": "[[Custom ChatGPT API endpoint]]",
90
99
 
91
- // Set this field if you need Gemini features.
92
- // OPTIONAL, string.
93
- "googleCredentials": "[[Google Cloud Credentials]]",
100
+ // Set some of these fields if you need Anthropic's Claude features.
94
101
  // OPTIONAL, string.
95
- "googleProject": "[[Google Cloud Project ID]]",
96
- // OPTIONAL, string, default: "gemini-pro-vision".
97
- "geminiModel": "[[Custom Gemini Model ID]]",
98
- // OPTIONAL, integer, default: 1.
99
- "geminiPriority": "[[Custom Gemini Priority]]",
102
+ "claudeApiKey": "[[Anthropic API Key]]",
103
+ // OPTIONAL, string, default: "claude".
104
+ "claudeModel": "[[Custom Claude Model ID]]",
105
+ // OPTIONAL, integer, default: 2.
106
+ "claudePriority": "[[Custom Claude Priority]]",
100
107
 
101
- // Set this field if you need Mistral features.
108
+ // Set some of these fields if you need Mistral features.
102
109
  // OPTIONAL, boolean.
103
110
  "mistralEnabled": "[[Enable Mistral hosted by Ollama]]",
104
111
  // OPTIONAL, string.
105
112
  "mistralEndpoint": "[[Custom Mistral API endpoint]]",
106
113
  // OPTIONAL, string, default: "Mistral" (Mistral 7B).
107
114
  "mistralModel": "[[Custom Mistral Model ID]]",
108
- // OPTIONAL, integer, default: 2.
115
+ // OPTIONAL, integer, default: 3.
109
116
  "mistralPriority": "[[Custom Mistral Priority]]",
110
117
 
111
- // OPTIONAL, string.
112
- // Set this field if you need Google's TTS/STT/OCR/OBJECT_DETECT/Embedding.
113
- "googleApiKey": "[[Google Cloud API Key]]",
114
-
115
118
  // OPTIONAL, undefined || array of string.
116
119
  // To open the bot to PUBLIC, DO NOT set this field;
117
120
  // To restrict the bot to PRIVATE, set chat/group/channel ids in this array.
118
121
  "private": ["[[CHAT_ID]]", "[[GROUP_ID]]", "[[CHANNEL_ID]]", ...],
119
122
 
120
123
  // OPTIONAL, string.
121
- // Set this field if you want to use a `magic word` to authenticate the bot.
124
+ // Set some of these fields if you want to use a `magic word` to authenticate the bot.
122
125
  "magicWord": "[[Your Magic Word here]]",
123
126
 
124
127
  // OPTIONAL, string.
@@ -147,6 +150,7 @@ All supported configuration fields:
147
150
  // support PostgreSQL, MariaDB/MySQL and Redis for now.
148
151
  // If omitted, the bot will use memory storage and sync to this file.
149
152
  // Example: (Compatibility: https://node-postgres.com/apis/pool)
153
+ // PostgreSQL is recommended for vector storage.
150
154
  "storage": {
151
155
  "provider": "POSTGRESQL",
152
156
  "host": "[[DATABASE HOST]]",
@@ -313,24 +317,6 @@ const config = {
313
317
  await halbot(config);
314
318
  ```
315
319
 
316
- ## ❤️ Become a sponsor to `halbot`
317
-
318
- [For `$10/month`, you can access the official `halbot` service for a month](https://github.com/sponsors/Leask).
319
-
320
- You don't need to pay `$20/month` for ChatGPT tokens separately.
321
-
322
- `halbot` is stable. It's running on top of the latest `GPT-4` model. It has a better user experience than the official web app. You can access `halbot` from your favourite Telegram apps on your phone, tablet and computer.
323
-
324
- Additionally, `halbot` has a lot of built-in input parsers to maximize the ChatGPT engine's power.
325
-
326
- `halbot` can now parse webpages, YouTube videos, PDFs, images, Office documents, code files, and text files. And other parsers are coming soon.
327
-
328
- `halbot` integrates Text-to-Image service by DALL·E 3. You can ask it to draw what you want.
329
-
330
- `halbot` also supports Text-to-Speech and Speech-to-Text. You can `talk` to the AI engines to get help with your job.
331
-
332
- And remember, you can always use the codes in this repo to build your own `halbot` instant. This project will keep open source forever.
333
-
334
320
  ## Foundations
335
321
 
336
322
  - `halbot` uses my other project [🧰 utilitas](https://github.com/Leask/utilitas) as the basic framework to handle all the dirty work.
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": "1992.1.17",
4
+ "version": "1992.1.19",
5
5
  "private": false,
6
6
  "homepage": "https://github.com/Leask/halbot",
7
7
  "type": "module",