@lobehub/chat 1.74.9 → 1.74.10

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,31 @@
2
2
 
3
3
  # Changelog
4
4
 
5
+ ### [Version 1.74.10](https://github.com/lobehub/lobe-chat/compare/v1.74.9...v1.74.10)
6
+
7
+ <sup>Released on **2025-03-25**</sup>
8
+
9
+ #### 💄 Styles
10
+
11
+ - **misc**: Add `hunyuan-t1-latest` from Hunyuan.
12
+
13
+ <br/>
14
+
15
+ <details>
16
+ <summary><kbd>Improvements and Fixes</kbd></summary>
17
+
18
+ #### Styles
19
+
20
+ - **misc**: Add `hunyuan-t1-latest` from Hunyuan, closes [#7123](https://github.com/lobehub/lobe-chat/issues/7123) ([8377c6b](https://github.com/lobehub/lobe-chat/commit/8377c6b))
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
+
5
30
  ### [Version 1.74.9](https://github.com/lobehub/lobe-chat/compare/v1.74.8...v1.74.9)
6
31
 
7
32
  <sup>Released on **2025-03-25**</sup>
package/changelog/v1.json CHANGED
@@ -1,4 +1,13 @@
1
1
  [
2
+ {
3
+ "children": {
4
+ "improvements": [
5
+ "Add hunyuan-t1-latest from Hunyuan."
6
+ ]
7
+ },
8
+ "date": "2025-03-25",
9
+ "version": "1.74.10"
10
+ },
2
11
  {
3
12
  "children": {
4
13
  "improvements": [
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@lobehub/chat",
3
- "version": "1.74.9",
3
+ "version": "1.74.10",
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",
@@ -3,6 +3,51 @@ import { AIChatModelCard } from '@/types/aiModel';
3
3
  // https://cloud.tencent.com/document/product/1729/104753
4
4
 
5
5
  const hunyuanChatModels: AIChatModelCard[] = [
6
+ {
7
+ abilities: {
8
+ reasoning: true,
9
+ search: true,
10
+ },
11
+ contextWindowTokens: 92_000,
12
+ description:
13
+ '业内首个超大规模 Hybrid-Transformer-Mamba 推理模型,扩展推理能力,超强解码速度,进一步对齐人类偏好。',
14
+ displayName: 'Hunyuan T1',
15
+ enabled: true,
16
+ id: 'hunyuan-t1-latest',
17
+ maxOutput: 64_000,
18
+ pricing: {
19
+ currency: 'CNY',
20
+ input: 1,
21
+ output: 4,
22
+ },
23
+ releasedAt: '2025-03-21',
24
+ settings: {
25
+ searchImpl: 'params',
26
+ },
27
+ type: 'chat',
28
+ },
29
+ {
30
+ abilities: {
31
+ reasoning: true,
32
+ search: true,
33
+ },
34
+ contextWindowTokens: 92_000,
35
+ description:
36
+ '全面搭建模型文理科能力,长文本信息捕捉能力强。支持推理解答各种难度的数学/逻辑推理/科学/代码等科学问题。',
37
+ displayName: 'Hunyuan T1 20250321',
38
+ id: 'hunyuan-t1-20250321',
39
+ maxOutput: 64_000,
40
+ pricing: {
41
+ currency: 'CNY',
42
+ input: 1,
43
+ output: 4,
44
+ },
45
+ releasedAt: '2025-03-21',
46
+ settings: {
47
+ searchImpl: 'params',
48
+ },
49
+ type: 'chat',
50
+ },
6
51
  {
7
52
  contextWindowTokens: 256_000,
8
53
  description:
@@ -40,6 +40,10 @@ export const LobeHunyuanAI = LobeOpenAICompatibleFactory({
40
40
  'hunyuan-pro',
41
41
  ];
42
42
 
43
+ const reasoningKeywords = [
44
+ 'hunyuan-t1',
45
+ ];
46
+
43
47
  const modelsPage = await client.models.list() as any;
44
48
  const modelList: HunyuanModelCard[] = modelsPage.data;
45
49
 
@@ -57,7 +61,8 @@ export const LobeHunyuanAI = LobeOpenAICompatibleFactory({
57
61
  || false,
58
62
  id: model.id,
59
63
  reasoning:
60
- knownModel?.abilities?.reasoning
64
+ reasoningKeywords.some(keyword => model.id.toLowerCase().includes(keyword))
65
+ || knownModel?.abilities?.reasoning
61
66
  || false,
62
67
  vision:
63
68
  model.id.toLowerCase().includes('vision')