@lobehub/chat 1.97.11 → 1.97.12
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/CHANGELOG.md +25 -0
- package/changelog/v1.json +9 -0
- package/package.json +1 -5
- package/src/config/aiModels/xai.ts +1 -1
- package/src/database/migrations/0026_add_autovacuum_tuning.sql +12 -0
- package/src/database/migrations/meta/0026_snapshot.json +5703 -0
- package/src/database/migrations/meta/_journal.json +7 -0
- package/src/libs/model-runtime/bedrock/index.ts +32 -1
- package/src/libs/model-runtime/utils/streams/bedrock/common.ts +2 -1
- package/src/libs/model-runtime/utils/streams/protocol.ts +16 -0
- package/src/libs/model-runtime/utils/streams/qwen.ts +4 -2
- package/src/libs/model-runtime/xai/index.ts +6 -3
package/CHANGELOG.md
CHANGED
@@ -2,6 +2,31 @@
|
|
2
2
|
|
3
3
|
# Changelog
|
4
4
|
|
5
|
+
### [Version 1.97.12](https://github.com/lobehub/lobe-chat/compare/v1.97.11...v1.97.12)
|
6
|
+
|
7
|
+
<sup>Released on **2025-07-11**</sup>
|
8
|
+
|
9
|
+
#### 🐛 Bug Fixes
|
10
|
+
|
11
|
+
- **misc**: Grok-4 reasoning model universal matching.
|
12
|
+
|
13
|
+
<br/>
|
14
|
+
|
15
|
+
<details>
|
16
|
+
<summary><kbd>Improvements and Fixes</kbd></summary>
|
17
|
+
|
18
|
+
#### What's fixed
|
19
|
+
|
20
|
+
- **misc**: Grok-4 reasoning model universal matching, closes [#8390](https://github.com/lobehub/lobe-chat/issues/8390) ([d6f17f8](https://github.com/lobehub/lobe-chat/commit/d6f17f8))
|
21
|
+
|
22
|
+
</details>
|
23
|
+
|
24
|
+
<div align="right">
|
25
|
+
|
26
|
+
[](#readme-top)
|
27
|
+
|
28
|
+
</div>
|
29
|
+
|
5
30
|
### [Version 1.97.11](https://github.com/lobehub/lobe-chat/compare/v1.97.10...v1.97.11)
|
6
31
|
|
7
32
|
<sup>Released on **2025-07-11**</sup>
|
package/changelog/v1.json
CHANGED
package/package.json
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
{
|
2
2
|
"name": "@lobehub/chat",
|
3
|
-
"version": "1.97.
|
3
|
+
"version": "1.97.12",
|
4
4
|
"description": "Lobe Chat - an open-source, high-performance chatbot framework that supports speech synthesis, multimodal, and extensible Function Call plugin system. Supports one-click free deployment of your private ChatGPT/LLM web application.",
|
5
5
|
"keywords": [
|
6
6
|
"framework",
|
@@ -41,11 +41,8 @@
|
|
41
41
|
"db:generate": "drizzle-kit generate && npm run db:generate-client && npm run workflow:dbml",
|
42
42
|
"db:generate-client": "tsx ./scripts/migrateClientDB/compile-migrations.ts",
|
43
43
|
"db:migrate": "MIGRATION_DB=1 tsx ./scripts/migrateServerDB/index.ts",
|
44
|
-
"db:push": "drizzle-kit push",
|
45
|
-
"db:push-test": "NODE_ENV=test drizzle-kit push",
|
46
44
|
"db:studio": "drizzle-kit studio",
|
47
45
|
"db:visualize": "dbdocs build docs/development/database-schema.dbml --project lobe-chat",
|
48
|
-
"db:z-pull": "drizzle-kit introspect",
|
49
46
|
"desktop:build": "npm run desktop:build-next && npm run desktop:prepare-dist && npm run desktop:build-electron",
|
50
47
|
"desktop:build-electron": "tsx scripts/electronWorkflow/buildElectron.ts",
|
51
48
|
"desktop:build-next": "npm run build:electron",
|
@@ -170,7 +167,6 @@
|
|
170
167
|
"@vercel/speed-insights": "^1.2.0",
|
171
168
|
"@xterm/xterm": "^5.5.0",
|
172
169
|
"ahooks": "^3.8.5",
|
173
|
-
"ai": "^3.4.33",
|
174
170
|
"antd": "^5.26.4",
|
175
171
|
"antd-style": "^3.7.1",
|
176
172
|
"brotli-wasm": "^3.0.1",
|
@@ -0,0 +1,12 @@
|
|
1
|
+
-- Migration to apply specific autovacuum settings to high-traffic tables
|
2
|
+
-- This is crucial to prevent table and TOAST bloat for 'embeddings' and 'chunks'
|
3
|
+
-- https://github.com/lobehub/lobe-chat/issues/8316
|
4
|
+
|
5
|
+
-- Tuning for the 'embeddings' table
|
6
|
+
-- Default scale factor (0.2) is too high, leading to infrequent vacuuming.
|
7
|
+
-- Lowering to 2% to ensure frequent cleanup.
|
8
|
+
ALTER TABLE "embeddings" SET (autovacuum_vacuum_scale_factor = 0.02, autovacuum_vacuum_threshold = 1000);
|
9
|
+
|
10
|
+
-- Tuning for the 'chunks' table
|
11
|
+
-- This table also experiences many updates/deletes and requires similar tuning.
|
12
|
+
ALTER TABLE "chunks" SET (autovacuum_vacuum_scale_factor = 0.02, autovacuum_vacuum_threshold = 1000);
|