@lobehub/chat 1.32.5 → 1.32.7

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 CHANGED
@@ -2,6 +2,48 @@
2
2
 
3
3
  # Changelog
4
4
 
5
+ ### [Version 1.32.7](https://github.com/lobehub/lobe-chat/compare/v1.32.6...v1.32.7)
6
+
7
+ <sup>Released on **2024-11-24**</sup>
8
+
9
+ #### 🐛 Bug Fixes
10
+
11
+ - **misc**: Fix tool message display.
12
+
13
+ <br/>
14
+
15
+ <details>
16
+ <summary><kbd>Improvements and Fixes</kbd></summary>
17
+
18
+ #### What's fixed
19
+
20
+ - **misc**: Fix tool message display, closes [#4776](https://github.com/lobehub/lobe-chat/issues/4776) ([9d9b2a2](https://github.com/lobehub/lobe-chat/commit/9d9b2a2))
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.32.6](https://github.com/lobehub/lobe-chat/compare/v1.32.5...v1.32.6)
31
+
32
+ <sup>Released on **2024-11-24**</sup>
33
+
34
+ <br/>
35
+
36
+ <details>
37
+ <summary><kbd>Improvements and Fixes</kbd></summary>
38
+
39
+ </details>
40
+
41
+ <div align="right">
42
+
43
+ [![](https://img.shields.io/badge/-BACK_TO_TOP-151515?style=flat-square)](#readme-top)
44
+
45
+ </div>
46
+
5
47
  ### [Version 1.32.5](https://github.com/lobehub/lobe-chat/compare/v1.32.4...v1.32.5)
6
48
 
7
49
  <sup>Released on **2024-11-24**</sup>
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@lobehub/chat",
3
- "version": "1.32.5",
3
+ "version": "1.32.7",
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",
@@ -166,8 +166,8 @@
166
166
  "js-sha256": "^0.11.0",
167
167
  "jsonl-parse-stringify": "^1.0.3",
168
168
  "langchain": "^0.3.2",
169
- "langfuse": "^3.27.0",
170
- "langfuse-core": "^3.27.0",
169
+ "langfuse": "3.29.1",
170
+ "langfuse-core": "3.29.1",
171
171
  "lodash-es": "^4.17.21",
172
172
  "lucide-react": "latest",
173
173
  "mammoth": "^1.8.0",
@@ -4,10 +4,10 @@ const HuggingFace: ModelProviderCard = {
4
4
  chatModels: [
5
5
  {
6
6
  description: 'Mistral AI的指令调优模型',
7
- displayName: 'Mistral 7B Instruct v0.2',
7
+ displayName: 'Mistral 7B Instruct v0.3',
8
8
  enabled: true,
9
- id: 'mistralai/Mistral-7B-Instruct-v0.2',
10
- tokens: 8192,
9
+ id: 'mistralai/Mistral-7B-Instruct-v0.3',
10
+ tokens: 32_768,
11
11
  },
12
12
  {
13
13
  description: 'Google的轻量级指令调优模型',
@@ -21,6 +21,22 @@ const HuggingFace: ModelProviderCard = {
21
21
  id: 'Qwen/Qwen2.5-72B-Instruct',
22
22
  tokens: 32_768,
23
23
  },
24
+ {
25
+ description: 'Qwen2.5-Coder 专注于代码编写',
26
+ displayName: 'Qwen 2.5 Coder 32B Instruct',
27
+ id: 'Qwen/Qwen2.5-Coder-32B-Instruct',
28
+ tokens: 32_768,
29
+ },
30
+ {
31
+ displayName: 'Phi 3.5 mini instruct',
32
+ id: 'microsoft/Phi-3.5-mini-instruct',
33
+ tokens: 32_768,
34
+ },
35
+ {
36
+ displayName: 'Hermes 3 Llama 3.1 8B',
37
+ id: 'NousResearch/Hermes-3-Llama-3.1-8B',
38
+ tokens: 16_384,
39
+ },
24
40
  ],
25
41
  checkModel: 'mistralai/Mistral-7B-Instruct-v0.2',
26
42
  description:
@@ -57,8 +57,8 @@ const activeBaseChatsWithoutTool = (s: ChatStoreState) => {
57
57
  * 根据当前不同的状态,返回不同的消息列表
58
58
  */
59
59
  const mainDisplayChats = (s: ChatStoreState): ChatMessage[] => {
60
+ return activeBaseChatsWithoutTool(s);
60
61
  // 如果没有 activeThreadId,则返回所有的主消息
61
- return activeBaseChats(s);
62
62
  // const mains = activeBaseChats(s).filter((m) => !m.threadId);
63
63
  // if (!s.activeThreadId) return mains;
64
64
  //
@@ -72,9 +72,7 @@ const mainDisplayChats = (s: ChatStoreState): ChatMessage[] => {
72
72
  // return [...sliced, ...activeBaseChats(s).filter((m) => m.threadId === s.activeThreadId)];
73
73
  };
74
74
 
75
- const mainDisplayChatIDs = (s: ChatStoreState) => {
76
- return mainDisplayChats(s).map((s) => s.id);
77
- };
75
+ const mainDisplayChatIDs = (s: ChatStoreState) => mainDisplayChats(s).map((s) => s.id);
78
76
 
79
77
  const currentChatsWithHistoryConfig = (s: ChatStoreState): ChatMessage[] => {
80
78
  const chats = activeBaseChats(s);