halbot 1992.1.17 → 1992.1.18
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 +21 -36
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -42,7 +42,7 @@ alt="Halbot live demo" width="240" height="180" border="10" /></a>
|
|
|
42
42
|
- Realtime stream-style response, no more waiting.
|
|
43
43
|
- Multimodal support for all supported models.
|
|
44
44
|
- Audio input and output support for supported models, not just TTS.
|
|
45
|
-
- Google `Search as a tool` support for Gemini 2.0.
|
|
45
|
+
- Google `Search as a tool` support for [Gemini 2.0](https://ai.google.dev/gemini-api/docs/models/gemini-v2).
|
|
46
46
|
- Markdown rendering
|
|
47
47
|
- Reference rendering
|
|
48
48
|
- Code block rendering, developers friendly.
|
|
@@ -72,14 +72,22 @@ All supported configuration fields:
|
|
|
72
72
|
// REQUIRED, string.
|
|
73
73
|
"telegramToken": "[[Telegram Bot API Token]]",
|
|
74
74
|
|
|
75
|
-
// Set some of these fields if you need
|
|
75
|
+
// Set some of these fields if you need Google's Gemini, TTS, STT, OCR, OBJECT_DETECT, Embedding features.
|
|
76
|
+
// OPTIONAL, string.
|
|
77
|
+
"googleApiKey": "[[Google Cloud / Gemini API Key]]",
|
|
78
|
+
// OPTIONAL, string, default: "gemini-pro-vision".
|
|
79
|
+
"geminiModel": "[[Custom Gemini Model ID]]",
|
|
80
|
+
// OPTIONAL, integer, default: 0.
|
|
81
|
+
"geminiPriority": "[[Custom Gemini Priority]]",
|
|
82
|
+
|
|
83
|
+
// Set some of these fields if you need OpenAI's ChatGPT, Whisper, Embedding features.
|
|
76
84
|
// OPTIONAL, string.
|
|
77
85
|
"openaiApiKey": "[[OpenAI API Key]]",
|
|
78
86
|
// OPTIONAL, string.
|
|
79
87
|
"openaiEndpoint": "[[Custom OpenAI API endpoint]]",
|
|
80
88
|
// OPTIONAL, string, default: "gpt-3.5-turbo".
|
|
81
89
|
"chatGptModel": "[[Custom ChatGPT Model ID]]",
|
|
82
|
-
// OPTIONAL, integer, default:
|
|
90
|
+
// OPTIONAL, integer, default: 1.
|
|
83
91
|
"chatGptPriority": "[[Custom ChatGPT Priority]]",
|
|
84
92
|
|
|
85
93
|
// Set some of these fields if you need to use custom ChatGPT API.
|
|
@@ -88,37 +96,31 @@ All supported configuration fields:
|
|
|
88
96
|
// OPTIONAL, string.
|
|
89
97
|
"chatGptEndpoint": "[[Custom ChatGPT API endpoint]]",
|
|
90
98
|
|
|
91
|
-
// Set
|
|
92
|
-
// OPTIONAL, string.
|
|
93
|
-
"googleCredentials": "[[Google Cloud Credentials]]",
|
|
99
|
+
// Set some of these fields if you need Anthropic's Claude features.
|
|
94
100
|
// OPTIONAL, string.
|
|
95
|
-
"
|
|
96
|
-
// OPTIONAL, string, default: "
|
|
97
|
-
"
|
|
98
|
-
// OPTIONAL, integer, default:
|
|
99
|
-
"
|
|
101
|
+
"claudeApiKey": "[[Anthropic API Key]]",
|
|
102
|
+
// OPTIONAL, string, default: "claude".
|
|
103
|
+
"claudeModel": "[[Custom Claude Model ID]]",
|
|
104
|
+
// OPTIONAL, integer, default: 2.
|
|
105
|
+
"claudePriority": "[[Custom Claude Priority]]",
|
|
100
106
|
|
|
101
|
-
// Set
|
|
107
|
+
// Set some of these fields if you need Mistral features.
|
|
102
108
|
// OPTIONAL, boolean.
|
|
103
109
|
"mistralEnabled": "[[Enable Mistral hosted by Ollama]]",
|
|
104
110
|
// OPTIONAL, string.
|
|
105
111
|
"mistralEndpoint": "[[Custom Mistral API endpoint]]",
|
|
106
112
|
// OPTIONAL, string, default: "Mistral" (Mistral 7B).
|
|
107
113
|
"mistralModel": "[[Custom Mistral Model ID]]",
|
|
108
|
-
// OPTIONAL, integer, default:
|
|
114
|
+
// OPTIONAL, integer, default: 3.
|
|
109
115
|
"mistralPriority": "[[Custom Mistral Priority]]",
|
|
110
116
|
|
|
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
117
|
// OPTIONAL, undefined || array of string.
|
|
116
118
|
// To open the bot to PUBLIC, DO NOT set this field;
|
|
117
119
|
// To restrict the bot to PRIVATE, set chat/group/channel ids in this array.
|
|
118
120
|
"private": ["[[CHAT_ID]]", "[[GROUP_ID]]", "[[CHANNEL_ID]]", ...],
|
|
119
121
|
|
|
120
122
|
// OPTIONAL, string.
|
|
121
|
-
// Set
|
|
123
|
+
// Set some of these fields if you want to use a `magic word` to authenticate the bot.
|
|
122
124
|
"magicWord": "[[Your Magic Word here]]",
|
|
123
125
|
|
|
124
126
|
// OPTIONAL, string.
|
|
@@ -147,6 +149,7 @@ All supported configuration fields:
|
|
|
147
149
|
// support PostgreSQL, MariaDB/MySQL and Redis for now.
|
|
148
150
|
// If omitted, the bot will use memory storage and sync to this file.
|
|
149
151
|
// Example: (Compatibility: https://node-postgres.com/apis/pool)
|
|
152
|
+
// PostgreSQL is recommended for vector storage.
|
|
150
153
|
"storage": {
|
|
151
154
|
"provider": "POSTGRESQL",
|
|
152
155
|
"host": "[[DATABASE HOST]]",
|
|
@@ -313,24 +316,6 @@ const config = {
|
|
|
313
316
|
await halbot(config);
|
|
314
317
|
```
|
|
315
318
|
|
|
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
319
|
## Foundations
|
|
335
320
|
|
|
336
321
|
- `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.
|
|
4
|
+
"version": "1992.1.18",
|
|
5
5
|
"private": false,
|
|
6
6
|
"homepage": "https://github.com/Leask/halbot",
|
|
7
7
|
"type": "module",
|