@lobehub/chat 1.61.1 → 1.61.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.61.2](https://github.com/lobehub/lobe-chat/compare/v1.61.1...v1.61.2)
|
6
|
+
|
7
|
+
<sup>Released on **2025-02-18**</sup>
|
8
|
+
|
9
|
+
#### 💄 Styles
|
10
|
+
|
11
|
+
- **misc**: Add `kimi-latest` for Moonshot.
|
12
|
+
|
13
|
+
<br/>
|
14
|
+
|
15
|
+
<details>
|
16
|
+
<summary><kbd>Improvements and Fixes</kbd></summary>
|
17
|
+
|
18
|
+
#### Styles
|
19
|
+
|
20
|
+
- **misc**: Add `kimi-latest` for Moonshot, closes [#6295](https://github.com/lobehub/lobe-chat/issues/6295) ([4fb98da](https://github.com/lobehub/lobe-chat/commit/4fb98da))
|
21
|
+
|
22
|
+
</details>
|
23
|
+
|
24
|
+
<div align="right">
|
25
|
+
|
26
|
+
[](#readme-top)
|
27
|
+
|
28
|
+
</div>
|
29
|
+
|
5
30
|
### [Version 1.61.1](https://github.com/lobehub/lobe-chat/compare/v1.61.0...v1.61.1)
|
6
31
|
|
7
32
|
<sup>Released on **2025-02-18**</sup>
|
package/changelog/v1.json
CHANGED
package/package.json
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
{
|
2
2
|
"name": "@lobehub/chat",
|
3
|
-
"version": "1.61.
|
3
|
+
"version": "1.61.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",
|
@@ -1,6 +1,42 @@
|
|
1
1
|
import { AIChatModelCard } from '@/types/aiModel';
|
2
2
|
|
3
3
|
const moonshotChatModels: AIChatModelCard[] = [
|
4
|
+
{
|
5
|
+
abilities: {
|
6
|
+
functionCall: true,
|
7
|
+
vision: true,
|
8
|
+
},
|
9
|
+
contextWindowTokens: 131_072,
|
10
|
+
description:
|
11
|
+
'Kimi 智能助手产品使用最新的 Kimi 大模型,可能包含尚未稳定的特性。支持图片理解,同时会自动根据请求的上下文长度选择 8k/32k/128k 模型作为计费模型',
|
12
|
+
displayName: 'Kimi Latest',
|
13
|
+
enabled: true,
|
14
|
+
id: 'kimi-latest',
|
15
|
+
pricing: {
|
16
|
+
cachedInput: 1,
|
17
|
+
currency: 'CNY',
|
18
|
+
input: 60,
|
19
|
+
output: 60,
|
20
|
+
},
|
21
|
+
releasedAt: '2025-02-17',
|
22
|
+
type: 'chat',
|
23
|
+
},
|
24
|
+
{
|
25
|
+
abilities: {
|
26
|
+
functionCall: true,
|
27
|
+
},
|
28
|
+
contextWindowTokens: 131_072,
|
29
|
+
description:
|
30
|
+
'Moonshot V1 Auto 可以根据当前上下文占用的 Tokens 数量来选择合适的模型',
|
31
|
+
displayName: 'Moonshot V1 Auto',
|
32
|
+
id: 'moonshot-v1-auto',
|
33
|
+
pricing: {
|
34
|
+
currency: 'CNY',
|
35
|
+
input: 60,
|
36
|
+
output: 60,
|
37
|
+
},
|
38
|
+
type: 'chat',
|
39
|
+
},
|
4
40
|
{
|
5
41
|
abilities: {
|
6
42
|
functionCall: true,
|
@@ -9,7 +45,6 @@ const moonshotChatModels: AIChatModelCard[] = [
|
|
9
45
|
description:
|
10
46
|
'Moonshot V1 8K 专为生成短文本任务设计,具有高效的处理性能,能够处理8,192个tokens,非常适合简短对话、速记和快速内容生成。',
|
11
47
|
displayName: 'Moonshot V1 8K',
|
12
|
-
enabled: true,
|
13
48
|
id: 'moonshot-v1-8k',
|
14
49
|
pricing: {
|
15
50
|
currency: 'CNY',
|
@@ -26,7 +61,6 @@ const moonshotChatModels: AIChatModelCard[] = [
|
|
26
61
|
description:
|
27
62
|
'Moonshot V1 32K 提供中等长度的上下文处理能力,能够处理32,768个tokens,特别适合生成各种长文档和复杂对话,应用于内容创作、报告生成和对话系统等领域。',
|
28
63
|
displayName: 'Moonshot V1 32K',
|
29
|
-
enabled: true,
|
30
64
|
id: 'moonshot-v1-32k',
|
31
65
|
pricing: {
|
32
66
|
currency: 'CNY',
|
@@ -43,7 +77,6 @@ const moonshotChatModels: AIChatModelCard[] = [
|
|
43
77
|
description:
|
44
78
|
'Moonshot V1 128K 是一款拥有超长上下文处理能力的模型,适用于生成超长文本,满足复杂的生成任务需求,能够处理多达128,000个tokens的内容,非常适合科研、学术和大型文档生成等应用场景。',
|
45
79
|
displayName: 'Moonshot V1 128K',
|
46
|
-
enabled: true,
|
47
80
|
id: 'moonshot-v1-128k',
|
48
81
|
pricing: {
|
49
82
|
currency: 'CNY',
|
@@ -61,7 +94,6 @@ const moonshotChatModels: AIChatModelCard[] = [
|
|
61
94
|
description:
|
62
95
|
'Kimi 视觉模型(包括 moonshot-v1-8k-vision-preview/moonshot-v1-32k-vision-preview/moonshot-v1-128k-vision-preview 等)能够理解图片内容,包括图片文字、图片颜色和物体形状等内容。',
|
63
96
|
displayName: 'Moonshot V1 8K Vision Preview',
|
64
|
-
enabled: true,
|
65
97
|
id: 'moonshot-v1-8k-vision-preview',
|
66
98
|
pricing: {
|
67
99
|
currency: 'CNY',
|
@@ -80,7 +112,6 @@ const moonshotChatModels: AIChatModelCard[] = [
|
|
80
112
|
description:
|
81
113
|
'Kimi 视觉模型(包括 moonshot-v1-8k-vision-preview/moonshot-v1-32k-vision-preview/moonshot-v1-128k-vision-preview 等)能够理解图片内容,包括图片文字、图片颜色和物体形状等内容。',
|
82
114
|
displayName: 'Moonshot V1 32K Vision Preview',
|
83
|
-
enabled: true,
|
84
115
|
id: 'moonshot-v1-32k-vision-preview',
|
85
116
|
pricing: {
|
86
117
|
currency: 'CNY',
|
@@ -99,7 +130,6 @@ const moonshotChatModels: AIChatModelCard[] = [
|
|
99
130
|
description:
|
100
131
|
'Kimi 视觉模型(包括 moonshot-v1-8k-vision-preview/moonshot-v1-32k-vision-preview/moonshot-v1-128k-vision-preview 等)能够理解图片内容,包括图片文字、图片颜色和物体形状等内容。',
|
101
132
|
displayName: 'Moonshot V1 128K Vision Preview',
|
102
|
-
enabled: true,
|
103
133
|
id: 'moonshot-v1-128k-vision-preview',
|
104
134
|
pricing: {
|
105
135
|
currency: 'CNY',
|
@@ -31,7 +31,7 @@ const Moonshot: ModelProviderCard = {
|
|
31
31
|
id: 'moonshot-v1-128k',
|
32
32
|
},
|
33
33
|
],
|
34
|
-
checkModel: '
|
34
|
+
checkModel: 'kimi-latest',
|
35
35
|
description:
|
36
36
|
'Moonshot 是由北京月之暗面科技有限公司推出的开源平台,提供多种自然语言处理模型,应用领域广泛,包括但不限于内容创作、学术研究、智能推荐、医疗诊断等,支持长文本处理和复杂生成任务。',
|
37
37
|
id: 'moonshot',
|
@@ -27,6 +27,16 @@ export const LobeMoonshotAI = LobeOpenAICompatibleFactory({
|
|
27
27
|
models: async ({ client }) => {
|
28
28
|
const { LOBE_DEFAULT_MODEL_LIST } = await import('@/config/aiModels');
|
29
29
|
|
30
|
+
const functionCallKeywords = [
|
31
|
+
'moonshot-v1',
|
32
|
+
'kimi-latest',
|
33
|
+
]
|
34
|
+
|
35
|
+
const visionKeywords = [
|
36
|
+
'kimi-latest',
|
37
|
+
'vision',
|
38
|
+
]
|
39
|
+
|
30
40
|
const modelsPage = await client.models.list() as any;
|
31
41
|
const modelList: MoonshotModelCard[] = modelsPage.data;
|
32
42
|
|
@@ -39,14 +49,15 @@ export const LobeMoonshotAI = LobeOpenAICompatibleFactory({
|
|
39
49
|
displayName: knownModel?.displayName ?? undefined,
|
40
50
|
enabled: knownModel?.enabled || false,
|
41
51
|
functionCall:
|
42
|
-
|
52
|
+
functionCallKeywords.some(keyword => model.id.toLowerCase().includes(keyword))
|
53
|
+
|| knownModel?.abilities?.functionCall
|
43
54
|
|| false,
|
44
55
|
id: model.id,
|
45
56
|
reasoning:
|
46
57
|
knownModel?.abilities?.reasoning
|
47
58
|
|| false,
|
48
59
|
vision:
|
49
|
-
model.id.toLowerCase().includes(
|
60
|
+
visionKeywords.some(keyword => model.id.toLowerCase().includes(keyword))
|
50
61
|
|| knownModel?.abilities?.vision
|
51
62
|
|| false,
|
52
63
|
};
|