halbot 1993.2.72 → 1993.2.74
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 +8 -0
- package/index.mjs +8 -1
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -107,6 +107,14 @@ All supported configuration fields:
|
|
|
107
107
|
// OPTIONAL, integer.
|
|
108
108
|
"anthropicPriority": "[[Custom Anthropic Priority]]",
|
|
109
109
|
|
|
110
|
+
// Set some of these fields if you need SiliconFlow's DeepSearch features.
|
|
111
|
+
// OPTIONAL, string.
|
|
112
|
+
"siliconflowApiKey": "[[SiliconFlow API Key]]",
|
|
113
|
+
// OPTIONAL, string.
|
|
114
|
+
"siliconflowModel": "[[Custom SiliconFlow Model ID]]",
|
|
115
|
+
// OPTIONAL, integer.
|
|
116
|
+
"siliconflowPriority": "[[Custom SiliconFlow Priority]]",
|
|
117
|
+
|
|
110
118
|
// Set some of these fields if you need Jina's DeepSearch features.
|
|
111
119
|
// OPTIONAL, string.
|
|
112
120
|
"jinaApiKey": "[[Jina API Key]]",
|
package/index.mjs
CHANGED
|
@@ -60,6 +60,13 @@ const init = async (options = {}) => {
|
|
|
60
60
|
priority: options.anthropicPriority, ...options
|
|
61
61
|
});
|
|
62
62
|
}
|
|
63
|
+
if (options.siliconflowApiKey) {
|
|
64
|
+
await alan.init({
|
|
65
|
+
provider: 'SILICONFLOW', model: options.siliconflowModel || '*',
|
|
66
|
+
apiKey: options.siliconflowApiKey,
|
|
67
|
+
priority: options.siliconflowPriority, ...options
|
|
68
|
+
});
|
|
69
|
+
}
|
|
63
70
|
if (options.jinaApiKey) {
|
|
64
71
|
const apiKey = { apiKey: options.jinaApiKey };
|
|
65
72
|
await alan.init({
|
|
@@ -116,7 +123,7 @@ const init = async (options = {}) => {
|
|
|
116
123
|
info: options?.info || info,
|
|
117
124
|
magicWord: options?.magicWord,
|
|
118
125
|
private: options?.private,
|
|
119
|
-
|
|
126
|
+
provider: 'telegram',
|
|
120
127
|
session: options?.storage,
|
|
121
128
|
skillPath: options?.skillPath || skillPath,
|
|
122
129
|
speech: _speech, vision,
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "halbot",
|
|
3
3
|
"description": "Just another `ChatGPT` / `Gemini` / `Claude` / `Azure` / `Jina` / `Ollama` Telegram bob, which is simple design, easy to use, extendable and fun.",
|
|
4
|
-
"version": "1993.2.
|
|
4
|
+
"version": "1993.2.74",
|
|
5
5
|
"private": false,
|
|
6
6
|
"homepage": "https://github.com/Leask/halbot",
|
|
7
7
|
"type": "module",
|