@lobehub/chat 1.102.0 → 1.102.1
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 +33 -0
- package/changelog/v1.json +9 -0
- package/package.json +1 -1
- package/src/app/[variants]/(main)/settings/provider/features/ModelList/ModelTitle/index.tsx +3 -1
- package/src/config/aiModels/groq.ts +17 -0
- package/src/libs/model-runtime/groq/index.test.ts +3 -21
- package/src/libs/model-runtime/groq/index.ts +1 -2
- package/src/store/user/slices/auth/action.ts +3 -3
package/CHANGELOG.md
CHANGED
@@ -2,6 +2,39 @@
|
|
2
2
|
|
3
3
|
# Changelog
|
4
4
|
|
5
|
+
### [Version 1.102.1](https://github.com/lobehub/lobe-chat/compare/v1.102.0...v1.102.1)
|
6
|
+
|
7
|
+
<sup>Released on **2025-07-21**</sup>
|
8
|
+
|
9
|
+
#### 🐛 Bug Fixes
|
10
|
+
|
11
|
+
- **groq**: Enable streaming for tool calls and add Kimi K2 model.
|
12
|
+
|
13
|
+
#### 💄 Styles
|
14
|
+
|
15
|
+
- **misc**: Modal list header sticky style.
|
16
|
+
|
17
|
+
<br/>
|
18
|
+
|
19
|
+
<details>
|
20
|
+
<summary><kbd>Improvements and Fixes</kbd></summary>
|
21
|
+
|
22
|
+
#### What's fixed
|
23
|
+
|
24
|
+
- **groq**: Enable streaming for tool calls and add Kimi K2 model, closes [#8510](https://github.com/lobehub/lobe-chat/issues/8510) ([60739bc](https://github.com/lobehub/lobe-chat/commit/60739bc))
|
25
|
+
|
26
|
+
#### Styles
|
27
|
+
|
28
|
+
- **misc**: Modal list header sticky style, closes [#8514](https://github.com/lobehub/lobe-chat/issues/8514) ([75273d5](https://github.com/lobehub/lobe-chat/commit/75273d5))
|
29
|
+
|
30
|
+
</details>
|
31
|
+
|
32
|
+
<div align="right">
|
33
|
+
|
34
|
+
[](#readme-top)
|
35
|
+
|
36
|
+
</div>
|
37
|
+
|
5
38
|
## [Version 1.102.0](https://github.com/lobehub/lobe-chat/compare/v1.101.2...v1.102.0)
|
6
39
|
|
7
40
|
<sup>Released on **2025-07-21**</sup>
|
package/changelog/v1.json
CHANGED
package/package.json
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
{
|
2
2
|
"name": "@lobehub/chat",
|
3
|
-
"version": "1.102.
|
3
|
+
"version": "1.102.1",
|
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",
|
@@ -58,8 +58,10 @@ const ModelTitle = memo<ModelFetcherProps>(
|
|
58
58
|
paddingBlock={8}
|
59
59
|
style={{
|
60
60
|
background: theme.colorBgContainer,
|
61
|
+
marginTop: mobile ? 0 : -12,
|
62
|
+
paddingTop: mobile ? 0 : 20,
|
61
63
|
position: 'sticky',
|
62
|
-
top: mobile ? -2 : -
|
64
|
+
top: mobile ? -2 : -32,
|
63
65
|
zIndex: 15,
|
64
66
|
}}
|
65
67
|
>
|
@@ -23,6 +23,23 @@ const groqChatModels: AIChatModelCard[] = [
|
|
23
23
|
maxOutput: 8192,
|
24
24
|
type: 'chat',
|
25
25
|
},
|
26
|
+
{
|
27
|
+
abilities: {
|
28
|
+
functionCall: true,
|
29
|
+
},
|
30
|
+
contextWindowTokens: 131_072,
|
31
|
+
description:
|
32
|
+
'kimi-k2 是一款具备超强代码和 Agent 能力的 MoE 架构基础模型,总参数 1T,激活参数 32B。在通用知识推理、编程、数学、Agent 等主要类别的基准性能测试中,K2 模型的性能超过其他主流开源模型。',
|
33
|
+
displayName: 'Kimi K2 Instruct',
|
34
|
+
enabled: true,
|
35
|
+
id: 'moonshotai/kimi-k2-instruct',
|
36
|
+
pricing: {
|
37
|
+
input: 1,
|
38
|
+
output: 3,
|
39
|
+
},
|
40
|
+
releasedAt: '2025-07-11',
|
41
|
+
type: 'chat',
|
42
|
+
},
|
26
43
|
{
|
27
44
|
contextWindowTokens: 131_072,
|
28
45
|
displayName: 'Llama 4 Scout (17Bx16E)',
|
@@ -34,25 +34,7 @@ afterEach(() => {
|
|
34
34
|
|
35
35
|
describe('LobeGroqAI Temperature Tests', () => {
|
36
36
|
describe('handlePayload option', () => {
|
37
|
-
it('should set stream to false when payload contains tools', async () => {
|
38
|
-
const mockCreateMethod = vi
|
39
|
-
.spyOn(instance['client'].chat.completions, 'create')
|
40
|
-
.mockResolvedValue({
|
41
|
-
id: 'chatcmpl-8xDx5AETP8mESQN7UB30GxTN2H1SO',
|
42
|
-
object: 'chat.completion',
|
43
|
-
created: 1709125675,
|
44
|
-
model: 'mistralai/mistral-7b-instruct:free',
|
45
|
-
system_fingerprint: 'fp_86156a94a0',
|
46
|
-
choices: [
|
47
|
-
{
|
48
|
-
index: 0,
|
49
|
-
message: { role: 'assistant', content: 'hello', refusal: null },
|
50
|
-
logprobs: null,
|
51
|
-
finish_reason: 'stop',
|
52
|
-
},
|
53
|
-
],
|
54
|
-
});
|
55
|
-
|
37
|
+
it('should not set stream to false when payload contains tools', async () => {
|
56
38
|
await instance.chat({
|
57
39
|
messages: [{ content: 'Hello', role: 'user' }],
|
58
40
|
model: 'mistralai/mistral-7b-instruct:free',
|
@@ -65,8 +47,8 @@ describe('LobeGroqAI Temperature Tests', () => {
|
|
65
47
|
],
|
66
48
|
});
|
67
49
|
|
68
|
-
expect(
|
69
|
-
expect.objectContaining({ stream:
|
50
|
+
expect(instance['client'].chat.completions.create).toHaveBeenCalledWith(
|
51
|
+
expect.objectContaining({ stream: true }),
|
70
52
|
expect.anything(),
|
71
53
|
);
|
72
54
|
});
|
@@ -21,8 +21,7 @@ export const LobeGroq = createOpenAICompatibleRuntime({
|
|
21
21
|
const { temperature, ...restPayload } = payload;
|
22
22
|
return {
|
23
23
|
...restPayload,
|
24
|
-
|
25
|
-
stream: !payload.tools,
|
24
|
+
stream: payload.stream ?? true,
|
26
25
|
|
27
26
|
temperature: temperature <= 0 ? undefined : temperature,
|
28
27
|
} as any;
|
@@ -39,10 +39,10 @@ export const createAuthSlice: StateCreator<
|
|
39
39
|
},
|
40
40
|
openLogin: async () => {
|
41
41
|
if (enableClerk) {
|
42
|
-
const
|
42
|
+
const redirectUrl = location.toString();
|
43
43
|
get().clerkSignIn?.({
|
44
|
-
fallbackRedirectUrl:
|
45
|
-
signUpForceRedirectUrl:
|
44
|
+
fallbackRedirectUrl: redirectUrl,
|
45
|
+
signUpForceRedirectUrl: redirectUrl,
|
46
46
|
signUpUrl: '/signup',
|
47
47
|
});
|
48
48
|
|