@lobehub/chat 1.87.1 → 1.87.2
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.87.2](https://github.com/lobehub/lobe-chat/compare/v1.87.1...v1.87.2)
|
6
|
+
|
7
|
+
<sup>Released on **2025-05-16**</sup>
|
8
|
+
|
9
|
+
#### 💄 Styles
|
10
|
+
|
11
|
+
- **misc**: Support Doubao 1.5 Thinking Vision Pro model.
|
12
|
+
|
13
|
+
<br/>
|
14
|
+
|
15
|
+
<details>
|
16
|
+
<summary><kbd>Improvements and Fixes</kbd></summary>
|
17
|
+
|
18
|
+
#### Styles
|
19
|
+
|
20
|
+
- **misc**: Support Doubao 1.5 Thinking Vision Pro model, closes [#7784](https://github.com/lobehub/lobe-chat/issues/7784) ([9cf0d6f](https://github.com/lobehub/lobe-chat/commit/9cf0d6f))
|
21
|
+
|
22
|
+
</details>
|
23
|
+
|
24
|
+
<div align="right">
|
25
|
+
|
26
|
+
[](#readme-top)
|
27
|
+
|
28
|
+
</div>
|
29
|
+
|
5
30
|
### [Version 1.87.1](https://github.com/lobehub/lobe-chat/compare/v1.87.0...v1.87.1)
|
6
31
|
|
7
32
|
<sup>Released on **2025-05-16**</sup>
|
package/changelog/v1.json
CHANGED
package/package.json
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
{
|
2
2
|
"name": "@lobehub/chat",
|
3
|
-
"version": "1.87.
|
3
|
+
"version": "1.87.2",
|
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,32 @@ import { AIChatModelCard } from '@/types/aiModel';
|
|
4
4
|
// pricing https://console.volcengine.com/ark/region:ark+cn-beijing/openManagement
|
5
5
|
|
6
6
|
const doubaoChatModels: AIChatModelCard[] = [
|
7
|
+
{
|
8
|
+
abilities: {
|
9
|
+
functionCall: true,
|
10
|
+
reasoning: true,
|
11
|
+
vision: true,
|
12
|
+
},
|
13
|
+
config: {
|
14
|
+
deploymentName: 'doubao-1-5-thinking-vision-pro-250428',
|
15
|
+
},
|
16
|
+
contextWindowTokens: 131_072,
|
17
|
+
description:
|
18
|
+
'全新视觉深度思考模型,具备更强的通用多模态理解和推理能力,在 59 个公开评测基准中的 37 个上取得 SOTA 表现。',
|
19
|
+
displayName: 'Doubao 1.5 Thinking Vision Pro',
|
20
|
+
enabled: true,
|
21
|
+
id: 'Doubao-1.5-thinking-vision-pro',
|
22
|
+
maxOutput: 16_000,
|
23
|
+
pricing: {
|
24
|
+
currency: 'CNY',
|
25
|
+
input: 3,
|
26
|
+
output: 9,
|
27
|
+
},
|
28
|
+
settings: {
|
29
|
+
extendParams: ['enableReasoning'],
|
30
|
+
},
|
31
|
+
type: 'chat',
|
32
|
+
},
|
7
33
|
{
|
8
34
|
abilities: {
|
9
35
|
functionCall: true,
|
@@ -39,7 +65,6 @@ const doubaoChatModels: AIChatModelCard[] = [
|
|
39
65
|
description:
|
40
66
|
'Doubao-1.5全新深度思考模型 (m 版本自带原生多模态深度推理能力),在数学、编程、科学推理等专业领域及创意写作等通用任务中表现突出,在AIME 2024、Codeforces、GPQA等多项权威基准上达到或接近业界第一梯队水平。支持128k上下文窗口,16k输出。',
|
41
67
|
displayName: 'Doubao 1.5 Thinking Pro M',
|
42
|
-
enabled: true,
|
43
68
|
id: 'Doubao-1.5-thinking-pro-m',
|
44
69
|
maxOutput: 16_000,
|
45
70
|
pricing: {
|
@@ -3,6 +3,24 @@ import { LobeOpenAICompatibleFactory } from '../utils/openaiCompatibleFactory';
|
|
3
3
|
|
4
4
|
export const LobeVolcengineAI = LobeOpenAICompatibleFactory({
|
5
5
|
baseURL: 'https://ark.cn-beijing.volces.com/api/v3',
|
6
|
+
chatCompletion: {
|
7
|
+
handlePayload: (payload) => {
|
8
|
+
const { model, thinking, ...rest } = payload;
|
9
|
+
|
10
|
+
return {
|
11
|
+
...rest,
|
12
|
+
model,
|
13
|
+
...(['thinking-vision-pro'].some((keyword) => model.toLowerCase().includes(keyword))
|
14
|
+
? {
|
15
|
+
thinking:
|
16
|
+
thinking !== undefined && thinking.type === 'enabled'
|
17
|
+
? { type: 'enabled' }
|
18
|
+
: { type: 'disabled' },
|
19
|
+
}
|
20
|
+
: {}),
|
21
|
+
} as any;
|
22
|
+
},
|
23
|
+
},
|
6
24
|
debug: {
|
7
25
|
chatCompletion: () => process.env.DEBUG_VOLCENGINE_CHAT_COMPLETION === '1',
|
8
26
|
},
|