halbot 1995.1.62 → 1995.1.63

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 CHANGED
@@ -85,38 +85,26 @@ All supported configuration fields:
85
85
  "openrouterModel": "[[Custom OpenRouter Model ID]]",
86
86
  // OPTIONAL, integer.
87
87
  "openrouterPriority": "[[Custom OpenRouter Priority]]",
88
+ // OPTIONAL, string.
89
+ "openrouterPreset": "[[Custom OpenRouter Preset ID]]",
88
90
 
89
- // Set some of these fields if you need Google's search, imagen, veo, TTS features.
91
+ // Set some of these fields if you need Google's models that doesn't support OpenRouter.
90
92
  // OPTIONAL, string.
91
93
  "googleApiKey": "[[Google Cloud / Gemini API Key]]",
92
- // OPTIONAL, string, set if you need Google Search as a tool.
93
- "googleCx": "[[Google Search Engine ID]]",
94
94
 
95
- // Set some of these fields if you need OpenAI's ChatGPT, TTS/STT, Embedding features.
95
+ // Set some of these fields if you need OpenAI(or compatible API)'s models.
96
96
  // OPTIONAL, string.
97
97
  "openaiApiKey": "[[OpenAI API Key]]",
98
98
  // OPTIONAL, string.
99
99
  "openaiEndpoint": "[[Custom OpenAI API endpoint]]",
100
- // OPTIONAL, string, default: [[latest gpt mainstream model]].
100
+ // OPTIONAL, string.
101
101
  "openaiModel": "[[Custom OpenAI Model ID]]",
102
102
  // OPTIONAL, integer.
103
103
  "openaiPriority": "[[Custom OpenAI Priority]]",
104
104
 
105
- // Set some of these fields if you need SiliconFlow's AI models.
106
- // OPTIONAL, string.
107
- "siliconflowApiKey": "[[SiliconFlow API Key]]",
108
- // OPTIONAL, string.
109
- "siliconflowModel": "[[Custom SiliconFlow Model ID]]",
110
- // OPTIONAL, integer.
111
- "siliconflowPriority": "[[Custom SiliconFlow Priority]]",
112
-
113
- // Set some of these fields if you need Jina's DeepSearch, reader, search features.
105
+ // Set some of these fields if you need Jina's web search or reranker features.
114
106
  // OPTIONAL, string.
115
107
  "jinaApiKey": "[[Jina API Key]]",
116
- // OPTIONAL, string.
117
- "jinaModel": "[[Custom Jina Model ID]]",
118
- // OPTIONAL, integer.
119
- "jinaPriority": "[[Custom Jina Priority]]",
120
108
 
121
109
  // Set some of these fields if you need Ollama features.
122
110
  // OPTIONAL, boolean.
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "halbot",
3
3
  "description": "Just another AI powered Telegram bot, which is simple design, easy to use, extendable and fun.",
4
- "version": "1995.1.62",
4
+ "version": "1995.1.63",
5
5
  "private": false,
6
6
  "homepage": "https://github.com/Leask/halbot",
7
7
  "type": "module",
@@ -31,19 +31,19 @@
31
31
  "dependencies": {
32
32
  "@ffmpeg-installer/ffmpeg": "^1.1.0",
33
33
  "@ffprobe-installer/ffprobe": "^2.1.2",
34
- "@google-cloud/discoveryengine": "^2.6.0",
35
- "@google/genai": "^1.51.0",
34
+ "@google-cloud/discoveryengine": "^2.7.0",
35
+ "@google/genai": "^1.52.0",
36
36
  "@mozilla/readability": "^0.6.0",
37
37
  "@resvg/resvg-js": "^2.6.2",
38
38
  "fluent-ffmpeg": "^2.1.3",
39
39
  "google-gax": "^5.0.6",
40
40
  "ioredis": "^5.10.1",
41
41
  "jsdom": "^29.1.1",
42
- "lorem-ipsum": "^2.0.8",
42
+ "lorem-ipsum": "^3.0.0",
43
43
  "mime": "^4.1.0",
44
44
  "mysql2": "^3.22.3",
45
45
  "office-text-extractor": "^4.0.0",
46
- "openai": "^6.35.0",
46
+ "openai": "^6.36.0",
47
47
  "parse-numeric-range": "^1.3.0",
48
48
  "pg": "^8.20.0",
49
49
  "pgvector": "^0.2.1",
@@ -51,7 +51,7 @@
51
51
  "telegraf": "^4.16.3",
52
52
  "tellegram": "^1.1.18",
53
53
  "tesseract.js": "^7.0.0",
54
- "webjam": "^1995.3.21",
54
+ "webjam": "^1995.3.22",
55
55
  "youtube-transcript": "^1.3.1"
56
56
  }
57
57
  }
package/inspect_turn.mjs DELETED
@@ -1,28 +0,0 @@
1
-
2
- import { dbio, hal, storage as _storage } from './index.mjs';
3
-
4
- const run = async () => {
5
- const { config } = await _storage.getConfig();
6
- await dbio.init(config.storage);
7
- const token = 'TOKEN|8df8db54-3ef1-4d63-b91d-da05ae6eccff-d46ae000661b3509e743d37d55a7e30be8158c008ad93cad88d7af07503e2061c53bce89f042762495d168af02f';
8
- const result = await dbio.queryOne(
9
- `SELECT * FROM ${hal.table} WHERE token = $1`,
10
- [token]
11
- );
12
-
13
- if (result) {
14
- console.log('Result found.');
15
- const response = JSON.parse(result.response);
16
- console.log('Response count:', response.length);
17
-
18
- response.forEach((msg, i) => {
19
- console.log(`\nMessage ${i}:`);
20
- console.log(JSON.stringify(msg, null, 2));
21
- });
22
- } else {
23
- console.log('No result found for token.');
24
- }
25
- process.exit(0);
26
- };
27
-
28
- run().catch(console.error);