@lobehub/chat 1.106.7 → 1.106.8

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.106.8](https://github.com/lobehub/lobe-chat/compare/v1.106.7...v1.106.8)
6
+
7
+ <sup>Released on **2025-07-31**</sup>
8
+
9
+ #### 💄 Styles
10
+
11
+ - **misc**: Support SenseNova V6.5 models.
12
+
13
+ <br/>
14
+
15
+ <details>
16
+ <summary><kbd>Improvements and Fixes</kbd></summary>
17
+
18
+ #### Styles
19
+
20
+ - **misc**: Support SenseNova V6.5 models, closes [#8569](https://github.com/lobehub/lobe-chat/issues/8569) ([411ed7e](https://github.com/lobehub/lobe-chat/commit/411ed7e))
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.106.7](https://github.com/lobehub/lobe-chat/compare/v1.106.6...v1.106.7)
6
31
 
7
32
  <sup>Released on **2025-07-31**</sup>
package/changelog/v1.json CHANGED
@@ -1,4 +1,13 @@
1
1
  [
2
+ {
3
+ "children": {
4
+ "improvements": [
5
+ "Support SenseNova V6.5 models."
6
+ ]
7
+ },
8
+ "date": "2025-07-31",
9
+ "version": "1.106.8"
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.106.7",
3
+ "version": "1.106.8",
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",
@@ -4,6 +4,88 @@ import { AIChatModelCard } from '@/types/aiModel';
4
4
  // https://www.sensecore.cn/help/docs/model-as-a-service/nova/release
5
5
 
6
6
  const sensenovaChatModels: AIChatModelCard[] = [
7
+ {
8
+ abilities: {
9
+ reasoning: true,
10
+ vision: true,
11
+ },
12
+ contextWindowTokens: 131_072,
13
+ description: '通过对多模态、语言及推理数据的全面更新与训练策略的优化,新模型在多模态推理和泛化指令跟随能力上实现了显著提升,支持高达128k的上下文窗口,并在OCR与文旅IP识别等专项任务中表现卓越。',
14
+ displayName: 'SenseNova V6.5 Pro',
15
+ enabled: true,
16
+ id: 'SenseNova-V6-5-Pro',
17
+ pricing: {
18
+ currency: 'CNY',
19
+ input: 3,
20
+ output: 9,
21
+ },
22
+ releasedAt: '2025-07-23',
23
+ settings: {
24
+ extendParams: ['enableReasoning'],
25
+ },
26
+ type: 'chat',
27
+ },
28
+ {
29
+ abilities: {
30
+ reasoning: true,
31
+ vision: true,
32
+ },
33
+ contextWindowTokens: 131_072,
34
+ description: '通过对多模态、语言及推理数据的全面更新与训练策略的优化,新模型在多模态推理和泛化指令跟随能力上实现了显著提升,支持高达128k的上下文窗口,并在OCR与文旅IP识别等专项任务中表现卓越。',
35
+ displayName: 'SenseNova V6.5 Turbo',
36
+ enabled: true,
37
+ id: 'SenseNova-V6-5-Turbo',
38
+ pricing: {
39
+ currency: 'CNY',
40
+ input: 1.5,
41
+ output: 4.5,
42
+ },
43
+ releasedAt: '2025-07-23',
44
+ settings: {
45
+ extendParams: ['enableReasoning'],
46
+ },
47
+ type: 'chat',
48
+ },
49
+ {
50
+ abilities: {
51
+ reasoning: true,
52
+ },
53
+ contextWindowTokens: 32_768,
54
+ description: 'Qwen3-235B-A22B,MoE(混合专家模型)模型,引入了“混合推理模式”,支持用户在“思考模式”和“非思考模式”之间无缝切换,支持119种语言和方言理解与推理,并具备强大的工具调用能力,在综合能力、代码与数学、多语言能力、知识与推理等多项基准测试中,都能与DeepSeek R1、OpenAI o1、o3-mini、Grok 3和谷歌Gemini 2.5 Pro等目前市场上的主流大模型竞争。',
55
+ displayName: 'Qwen3 235B A22B',
56
+ id: 'Qwen3-235B',
57
+ organization: 'Qwen',
58
+ pricing: {
59
+ currency: 'CNY',
60
+ input: 0,
61
+ output: 0,
62
+ },
63
+ releasedAt: '2025-05-27',
64
+ settings: {
65
+ extendParams: ['enableReasoning'],
66
+ },
67
+ type: 'chat',
68
+ },
69
+ {
70
+ abilities: {
71
+ reasoning: true,
72
+ },
73
+ contextWindowTokens: 32_768,
74
+ description: 'Qwen3-32B,稠密模型(Dense Model),引入了“混合推理模式”,支持用户在“思考模式”和“非思考模式”之间无缝切换,由于模型架构改进、训练数据增加以及更有效的训练方法,整体性能与Qwen2.5-72B表现相当。',
75
+ displayName: 'Qwen3 32B',
76
+ id: 'Qwen3-32B',
77
+ organization: 'Qwen',
78
+ pricing: {
79
+ currency: 'CNY',
80
+ input: 0,
81
+ output: 0,
82
+ },
83
+ releasedAt: '2025-05-27',
84
+ settings: {
85
+ extendParams: ['enableReasoning'],
86
+ },
87
+ type: 'chat',
88
+ },
7
89
  {
8
90
  abilities: {
9
91
  reasoning: true,
@@ -12,7 +94,6 @@ const sensenovaChatModels: AIChatModelCard[] = [
12
94
  contextWindowTokens: 32_768,
13
95
  description: '兼顾视觉、语言深度推理,实现慢思考和深度推理,呈现完整的思维链过程。',
14
96
  displayName: 'SenseNova V6 Reasoner',
15
- enabled: true,
16
97
  id: 'SenseNova-V6-Reasoner',
17
98
  pricing: {
18
99
  currency: 'CNY',
@@ -30,7 +111,6 @@ const sensenovaChatModels: AIChatModelCard[] = [
30
111
  description:
31
112
  '实现图片、文本、视频能力的原生统一,突破传统多模态分立局限,在多模基础能力、语言基础能力等核心维度全面领先,文理兼修,在多项测评中多次位列国内外第一梯队水平。',
32
113
  displayName: 'SenseNova V6 Turbo',
33
- enabled: true,
34
114
  id: 'SenseNova-V6-Turbo',
35
115
  pricing: {
36
116
  currency: 'CNY',
@@ -48,7 +128,6 @@ const sensenovaChatModels: AIChatModelCard[] = [
48
128
  description:
49
129
  '实现图片、文本、视频能力的原生统一,突破传统多模态分立局限,在OpenCompass和SuperCLUE评测中斩获双冠军。',
50
130
  displayName: 'SenseNova V6 Pro',
51
- enabled: true,
52
131
  id: 'SenseNova-V6-Pro',
53
132
  pricing: {
54
133
  currency: 'CNY',
@@ -12,7 +12,7 @@ export const LobeSenseNovaAI = createOpenAICompatibleRuntime({
12
12
  baseURL: 'https://api.sensenova.cn/compatible-mode/v1',
13
13
  chatCompletion: {
14
14
  handlePayload: (payload) => {
15
- const { frequency_penalty, max_tokens, messages, model, temperature, top_p, ...rest } =
15
+ const { frequency_penalty, max_tokens, messages, model, temperature, thinking, top_p, ...rest } =
16
16
  payload;
17
17
 
18
18
  return {
@@ -33,6 +33,9 @@ export const LobeSenseNovaAI = createOpenAICompatibleRuntime({
33
33
  temperature !== undefined && temperature > 0 && temperature <= 2
34
34
  ? temperature
35
35
  : undefined,
36
+ thinking: thinking
37
+ ? (model && model.includes('-V6-5-') && thinking.type === 'enabled' ? { enabled: true } : { enabled: false })
38
+ : undefined,
36
39
  top_p: top_p !== undefined && top_p > 0 && top_p < 1 ? top_p : undefined,
37
40
  } as any;
38
41
  },