@lobehub/chat 1.138.2 → 1.138.4

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 (41) hide show
  1. package/CHANGELOG.md +50 -0
  2. package/changelog/v1.json +18 -0
  3. package/docker-compose/local/docker-compose.yml +1 -1
  4. package/docker-compose/local/grafana/docker-compose.yml +1 -1
  5. package/docker-compose/production/grafana/docker-compose.yml +1 -1
  6. package/package.json +1 -1
  7. package/packages/database/src/models/topic.ts +0 -1
  8. package/packages/database/src/repositories/aiInfra/index.test.ts +656 -0
  9. package/packages/database/src/repositories/aiInfra/index.ts +19 -13
  10. package/packages/model-runtime/src/core/contextBuilders/google.test.ts +585 -0
  11. package/packages/model-runtime/src/core/contextBuilders/google.ts +201 -0
  12. package/packages/model-runtime/src/core/openaiCompatibleFactory/index.test.ts +191 -179
  13. package/packages/model-runtime/src/core/openaiCompatibleFactory/index.ts +305 -47
  14. package/packages/model-runtime/src/providers/anthropic/generateObject.test.ts +93 -84
  15. package/packages/model-runtime/src/providers/anthropic/generateObject.ts +3 -3
  16. package/packages/model-runtime/src/providers/google/generateObject.test.ts +588 -83
  17. package/packages/model-runtime/src/providers/google/generateObject.ts +104 -6
  18. package/packages/model-runtime/src/providers/google/index.test.ts +0 -395
  19. package/packages/model-runtime/src/providers/google/index.ts +28 -194
  20. package/packages/model-runtime/src/providers/openai/index.test.ts +18 -17
  21. package/packages/model-runtime/src/types/structureOutput.ts +3 -4
  22. package/packages/obervability-otel/package.json +4 -4
  23. package/packages/prompts/CLAUDE.md +289 -43
  24. package/packages/prompts/package.json +2 -1
  25. package/packages/prompts/promptfoo/supervisor/productive/eval.yaml +51 -0
  26. package/packages/prompts/promptfoo/supervisor/productive/prompt.ts +18 -0
  27. package/packages/prompts/promptfoo/supervisor/productive/tests/basic-case.ts +54 -0
  28. package/packages/prompts/promptfoo/supervisor/productive/tests/role.ts +58 -0
  29. package/packages/prompts/promptfoo/supervisor/productive/tools.json +80 -0
  30. package/packages/prompts/src/contexts/index.ts +1 -0
  31. package/packages/prompts/src/contexts/supervisor/index.ts +2 -0
  32. package/packages/prompts/src/contexts/supervisor/makeDecision.ts +68 -0
  33. package/packages/prompts/src/contexts/supervisor/tools.ts +102 -0
  34. package/packages/prompts/src/index.ts +1 -0
  35. package/packages/types/src/aiChat.ts +9 -4
  36. package/src/server/routers/lambda/aiChat.ts +0 -1
  37. package/src/server/services/aiChat/index.test.ts +1 -1
  38. package/src/server/services/aiChat/index.ts +1 -1
  39. package/src/services/topic/client.ts +1 -1
  40. package/src/store/chat/slices/message/supervisor.test.ts +12 -5
  41. package/src/store/chat/slices/message/supervisor.ts +16 -129
package/CHANGELOG.md CHANGED
@@ -2,6 +2,56 @@
2
2
 
3
3
  # Changelog
4
4
 
5
+ ### [Version 1.138.4](https://github.com/lobehub/lobe-chat/compare/v1.138.3...v1.138.4)
6
+
7
+ <sup>Released on **2025-10-18**</sup>
8
+
9
+ #### 🐛 Bug Fixes
10
+
11
+ - **misc**: Fix response API tools calling issue.
12
+
13
+ <br/>
14
+
15
+ <details>
16
+ <summary><kbd>Improvements and Fixes</kbd></summary>
17
+
18
+ #### What's fixed
19
+
20
+ - **misc**: Fix response API tools calling issue, closes [#9760](https://github.com/lobehub/lobe-chat/issues/9760) ([0596692](https://github.com/lobehub/lobe-chat/commit/0596692))
21
+
22
+ </details>
23
+
24
+ <div align="right">
25
+
26
+ [![](https://img.shields.io/badge/-BACK_TO_TOP-151515?style=flat-square)](#readme-top)
27
+
28
+ </div>
29
+
30
+ ### [Version 1.138.3](https://github.com/lobehub/lobe-chat/compare/v1.138.2...v1.138.3)
31
+
32
+ <sup>Released on **2025-10-18**</sup>
33
+
34
+ #### 🐛 Bug Fixes
35
+
36
+ - **misc**: Fix topic fetch not correct in custom agent.
37
+
38
+ <br/>
39
+
40
+ <details>
41
+ <summary><kbd>Improvements and Fixes</kbd></summary>
42
+
43
+ #### What's fixed
44
+
45
+ - **misc**: Fix topic fetch not correct in custom agent, closes [#9761](https://github.com/lobehub/lobe-chat/issues/9761) ([ceffce2](https://github.com/lobehub/lobe-chat/commit/ceffce2))
46
+
47
+ </details>
48
+
49
+ <div align="right">
50
+
51
+ [![](https://img.shields.io/badge/-BACK_TO_TOP-151515?style=flat-square)](#readme-top)
52
+
53
+ </div>
54
+
5
55
  ### [Version 1.138.2](https://github.com/lobehub/lobe-chat/compare/v1.138.1...v1.138.2)
6
56
 
7
57
  <sup>Released on **2025-10-16**</sup>
package/changelog/v1.json CHANGED
@@ -1,4 +1,22 @@
1
1
  [
2
+ {
3
+ "children": {
4
+ "fixes": [
5
+ "Fix response API tools calling issue."
6
+ ]
7
+ },
8
+ "date": "2025-10-18",
9
+ "version": "1.138.4"
10
+ },
11
+ {
12
+ "children": {
13
+ "fixes": [
14
+ "Fix topic fetch not correct in custom agent."
15
+ ]
16
+ },
17
+ "date": "2025-10-18",
18
+ "version": "1.138.3"
19
+ },
2
20
  {
3
21
  "children": {
4
22
  "improvements": [
@@ -230,7 +230,7 @@ services:
230
230
  otel-tracing-test:
231
231
  profiles:
232
232
  - otel-test
233
- image: ghcr.io/grafana/xk6-client-tracing:v0.0.7
233
+ image: ghcr.io/grafana/xk6-client-tracing:v0.0.9
234
234
  container_name: lobe-otel-tracing-test
235
235
  network_mode: 'service:network-service'
236
236
  restart: always
@@ -151,7 +151,7 @@ services:
151
151
  otel-tracing-test:
152
152
  profiles:
153
153
  - otel-test
154
- image: ghcr.io/grafana/xk6-client-tracing:v0.0.7
154
+ image: ghcr.io/grafana/xk6-client-tracing:v0.0.9
155
155
  container_name: lobe-otel-tracing-test
156
156
  network_mode: 'service:network-service'
157
157
  restart: always
@@ -149,7 +149,7 @@ services:
149
149
  otel-tracing-test:
150
150
  profiles:
151
151
  - otel-test
152
- image: ghcr.io/grafana/xk6-client-tracing:v0.0.7
152
+ image: ghcr.io/grafana/xk6-client-tracing:v0.0.9
153
153
  container_name: lobe-otel-tracing-test
154
154
  network_mode: 'service:network-service'
155
155
  restart: always
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@lobehub/chat",
3
- "version": "1.138.2",
3
+ "version": "1.138.4",
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",
@@ -20,7 +20,6 @@ interface QueryTopicParams {
20
20
  containerId?: string | null; // sessionId or groupId
21
21
  current?: number;
22
22
  pageSize?: number;
23
- sessionId?: string | null;
24
23
  }
25
24
 
26
25
  export class TopicModel {