@lobehub/chat 0.148.0 → 0.148.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 +50 -0
- package/docs/self-hosting/platform/vercel.mdx +2 -5
- package/package.json +30 -30
- package/src/config/modelProviders/groq.ts +12 -0
- package/src/config/modelProviders/mistral.ts +6 -0
- package/src/store/chat/slices/topic/action.test.ts +1 -3
- package/src/store/chat/slices/topic/action.ts +5 -10
- package/vitest.config.ts +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -2,6 +2,56 @@
|
|
|
2
2
|
|
|
3
3
|
# Changelog
|
|
4
4
|
|
|
5
|
+
### [Version 0.148.2](https://github.com/lobehub/lobe-chat/compare/v0.148.1...v0.148.2)
|
|
6
|
+
|
|
7
|
+
<sup>Released on **2024-04-21**</sup>
|
|
8
|
+
|
|
9
|
+
#### 💄 Styles
|
|
10
|
+
|
|
11
|
+
- **misc**: Add LLaMA 3 in groq + Mixtral 8x22B model.
|
|
12
|
+
|
|
13
|
+
<br/>
|
|
14
|
+
|
|
15
|
+
<details>
|
|
16
|
+
<summary><kbd>Improvements and Fixes</kbd></summary>
|
|
17
|
+
|
|
18
|
+
#### Styles
|
|
19
|
+
|
|
20
|
+
- **misc**: Add LLaMA 3 in groq + Mixtral 8x22B model, closes [#2128](https://github.com/lobehub/lobe-chat/issues/2128) ([6144448](https://github.com/lobehub/lobe-chat/commit/6144448))
|
|
21
|
+
|
|
22
|
+
</details>
|
|
23
|
+
|
|
24
|
+
<div align="right">
|
|
25
|
+
|
|
26
|
+
[](#readme-top)
|
|
27
|
+
|
|
28
|
+
</div>
|
|
29
|
+
|
|
30
|
+
### [Version 0.148.1](https://github.com/lobehub/lobe-chat/compare/v0.148.0...v0.148.1)
|
|
31
|
+
|
|
32
|
+
<sup>Released on **2024-04-20**</sup>
|
|
33
|
+
|
|
34
|
+
#### 🐛 Bug Fixes
|
|
35
|
+
|
|
36
|
+
- **misc**: Fix topic title not auto generate.
|
|
37
|
+
|
|
38
|
+
<br/>
|
|
39
|
+
|
|
40
|
+
<details>
|
|
41
|
+
<summary><kbd>Improvements and Fixes</kbd></summary>
|
|
42
|
+
|
|
43
|
+
#### What's fixed
|
|
44
|
+
|
|
45
|
+
- **misc**: Fix topic title not auto generate, closes [#2114](https://github.com/lobehub/lobe-chat/issues/2114) ([5979de3](https://github.com/lobehub/lobe-chat/commit/5979de3))
|
|
46
|
+
|
|
47
|
+
</details>
|
|
48
|
+
|
|
49
|
+
<div align="right">
|
|
50
|
+
|
|
51
|
+
[](#readme-top)
|
|
52
|
+
|
|
53
|
+
</div>
|
|
54
|
+
|
|
5
55
|
## [Version 0.148.0](https://github.com/lobehub/lobe-chat/compare/v0.147.22...v0.148.0)
|
|
6
56
|
|
|
7
57
|
<sup>Released on **2024-04-20**</sup>
|
|
@@ -24,7 +24,7 @@ Go to [OpenAI API Key](https://platform.openai.com/account/api-keys) to get your
|
|
|
24
24
|
|
|
25
25
|
### Click the button below to deploy
|
|
26
26
|
|
|
27
|
-
[![]
|
|
27
|
+
[](https://vercel.com/new/clone?repository-url=https%3A%2F%2Fgithub.com%2Flobehub%2Flobe-chat&env=OPENAI_API_KEY,ACCESS_CODE&envDescription=Find%20your%20OpenAI%20API%20Key%20by%20click%20the%20right%20Learn%20More%20button.%20%7C%20Access%20Code%20can%20protect%20your%20website&envLink=https%3A%2F%2Fplatform.openai.com%2Faccount%2Fapi-keys&project-name=lobe-chat&repository-name=lobe-chat)
|
|
28
28
|
|
|
29
29
|
Simply log in with your GitHub account, and remember to fill in `OPENAI_API_KEY` (required) and `ACCESS_CODE` (recommended) in the environment variables page.
|
|
30
30
|
|
|
@@ -41,9 +41,6 @@ Vercel's assigned domain DNS may be polluted in some regions, so binding a custo
|
|
|
41
41
|
If you have deployed your project using the one-click deployment steps mentioned above, you may find that you are always prompted with "updates available." This is because Vercel creates a new project for you by default instead of forking this project, which causes the inability to accurately detect updates.
|
|
42
42
|
|
|
43
43
|
<Callout>
|
|
44
|
-
We recommend following the [Self-Hosting Upstream Sync](/docs/self-hosting/upstream-sync) steps to
|
|
44
|
+
We recommend following the [Self-Hosting Upstream Sync](/docs/self-hosting/advanced/upstream-sync) steps to
|
|
45
45
|
Redeploy.
|
|
46
46
|
</Callout>
|
|
47
|
-
|
|
48
|
-
[deploy-button-image]: https://vercel.com/button
|
|
49
|
-
[deploy-link]: https://vercel.com/new/clone?repository-url=https%3A%2F%2Fgithub.com%2Flobehub%2Flobe-chat&env=OPENAI_API_KEY,ACCESS_CODE&envDescription=Find%20your%20OpenAI%20API%20Key%20by%20click%20the%20right%20Learn%20More%20button.%20%7C%20Access%20Code%20can%20protect%20your%20website&envLink=https%3A%2F%2Fplatform.openai.com%2Faccount%2Fapi-keys&project-name=lobe-chat&repository-name=lobe-chat
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@lobehub/chat",
|
|
3
|
-
"version": "0.148.
|
|
3
|
+
"version": "0.148.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",
|
|
@@ -83,23 +83,23 @@
|
|
|
83
83
|
"@ant-design/icons": "^5.3.6",
|
|
84
84
|
"@anthropic-ai/sdk": "^0.18.0",
|
|
85
85
|
"@auth/core": "0.28.0",
|
|
86
|
-
"@aws-sdk/client-bedrock-runtime": "^3.
|
|
86
|
+
"@aws-sdk/client-bedrock-runtime": "^3.556.0",
|
|
87
87
|
"@azure/openai": "^1.0.0-beta.12",
|
|
88
88
|
"@cfworker/json-schema": "^1.12.8",
|
|
89
|
-
"@google/generative-ai": "^0.7.
|
|
90
|
-
"@icons-pack/react-simple-icons": "^9.4.
|
|
89
|
+
"@google/generative-ai": "^0.7.1",
|
|
90
|
+
"@icons-pack/react-simple-icons": "^9.4.1",
|
|
91
91
|
"@lobehub/chat-plugin-sdk": "latest",
|
|
92
92
|
"@lobehub/chat-plugins-gateway": "latest",
|
|
93
93
|
"@lobehub/icons": "latest",
|
|
94
94
|
"@lobehub/tts": "latest",
|
|
95
|
-
"@lobehub/ui": "^1.138.
|
|
96
|
-
"@next/third-parties": "^14.
|
|
97
|
-
"@sentry/nextjs": "^7.
|
|
95
|
+
"@lobehub/ui": "^1.138.6",
|
|
96
|
+
"@next/third-parties": "^14.2.2",
|
|
97
|
+
"@sentry/nextjs": "^7.111.0",
|
|
98
98
|
"@vercel/analytics": "^1.2.2",
|
|
99
99
|
"@vercel/speed-insights": "^1.0.10",
|
|
100
100
|
"ahooks": "^3.7.11",
|
|
101
101
|
"ai": "3.0.19",
|
|
102
|
-
"antd": "^5.16.
|
|
102
|
+
"antd": "^5.16.2",
|
|
103
103
|
"antd-style": "^3.6.2",
|
|
104
104
|
"brotli-wasm": "^2.0.1",
|
|
105
105
|
"chroma-js": "^2.4.2",
|
|
@@ -109,17 +109,17 @@
|
|
|
109
109
|
"diff": "^5.2.0",
|
|
110
110
|
"fast-deep-equal": "^3.1.3",
|
|
111
111
|
"gpt-tokenizer": "^2.1.2",
|
|
112
|
-
"i18next": "^23.11.
|
|
112
|
+
"i18next": "^23.11.2",
|
|
113
113
|
"i18next-browser-languagedetector": "^7.2.1",
|
|
114
|
-
"i18next-resources-to-backend": "^1.2.
|
|
114
|
+
"i18next-resources-to-backend": "^1.2.1",
|
|
115
115
|
"idb-keyval": "^6.2.1",
|
|
116
116
|
"immer": "^10.0.4",
|
|
117
117
|
"jose": "^5.2.4",
|
|
118
|
-
"langfuse": "^3.
|
|
119
|
-
"langfuse-core": "^3.
|
|
118
|
+
"langfuse": "^3.7.0",
|
|
119
|
+
"langfuse-core": "^3.7.0",
|
|
120
120
|
"lodash-es": "^4.17.21",
|
|
121
121
|
"lucide-react": "latest",
|
|
122
|
-
"modern-screenshot": "^4.4.
|
|
122
|
+
"modern-screenshot": "^4.4.39",
|
|
123
123
|
"nanoid": "^5.0.7",
|
|
124
124
|
"next": "14.1.4",
|
|
125
125
|
"next-auth": "5.0.0-beta.15",
|
|
@@ -127,9 +127,9 @@
|
|
|
127
127
|
"numeral": "^2.0.6",
|
|
128
128
|
"nuqs": "^1.17.1",
|
|
129
129
|
"ollama": "^0.5.0",
|
|
130
|
-
"openai": "^4.
|
|
130
|
+
"openai": "^4.38.2",
|
|
131
131
|
"polished": "^4.3.1",
|
|
132
|
-
"posthog-js": "^1.
|
|
132
|
+
"posthog-js": "^1.128.1",
|
|
133
133
|
"query-string": "^9.0.0",
|
|
134
134
|
"random-words": "^2.0.1",
|
|
135
135
|
"react": "^18.2.0",
|
|
@@ -138,7 +138,7 @@
|
|
|
138
138
|
"react-i18next": "^14.1.0",
|
|
139
139
|
"react-layout-kit": "^1.9.0",
|
|
140
140
|
"react-lazy-load": "^4.0.1",
|
|
141
|
-
"react-virtuoso": "^4.7.
|
|
141
|
+
"react-virtuoso": "^4.7.9",
|
|
142
142
|
"react-wrap-balancer": "^1.1.0",
|
|
143
143
|
"remark": "^14.0.3",
|
|
144
144
|
"remark-gfm": "^3.0.1",
|
|
@@ -158,41 +158,41 @@
|
|
|
158
158
|
"y-webrtc": "^10.3.0",
|
|
159
159
|
"yaml": "^2.4.1",
|
|
160
160
|
"yjs": "^13.6.14",
|
|
161
|
-
"zod": "^3.22.
|
|
161
|
+
"zod": "^3.22.5",
|
|
162
162
|
"zustand": "^4.5.2",
|
|
163
163
|
"zustand-utils": "^1.3.2"
|
|
164
164
|
},
|
|
165
165
|
"devDependencies": {
|
|
166
|
-
"@commitlint/cli": "^19.2.
|
|
166
|
+
"@commitlint/cli": "^19.2.2",
|
|
167
167
|
"@ducanh2912/next-pwa": "^10.2.6",
|
|
168
168
|
"@edge-runtime/vm": "^3.2.0",
|
|
169
169
|
"@lobehub/i18n-cli": "^1.18.1",
|
|
170
170
|
"@lobehub/lint": "^1.23.3",
|
|
171
171
|
"@lobehub/seo-cli": "^1.4.1",
|
|
172
|
-
"@next/bundle-analyzer": "^14.
|
|
173
|
-
"@next/eslint-plugin-next": "^14.
|
|
172
|
+
"@next/bundle-analyzer": "^14.2.2",
|
|
173
|
+
"@next/eslint-plugin-next": "^14.2.2",
|
|
174
174
|
"@peculiar/webcrypto": "^1.4.6",
|
|
175
175
|
"@testing-library/jest-dom": "^6.4.2",
|
|
176
|
-
"@testing-library/react": "^15.0.
|
|
176
|
+
"@testing-library/react": "^15.0.2",
|
|
177
177
|
"@types/chroma-js": "^2.4.4",
|
|
178
178
|
"@types/debug": "^4.1.12",
|
|
179
|
-
"@types/diff": "^5.0
|
|
179
|
+
"@types/diff": "^5.2.0",
|
|
180
180
|
"@types/json-schema": "^7.0.15",
|
|
181
181
|
"@types/lodash": "^4.17.0",
|
|
182
182
|
"@types/lodash-es": "^4.17.12",
|
|
183
|
-
"@types/node": "^20.12.
|
|
183
|
+
"@types/node": "^20.12.7",
|
|
184
184
|
"@types/numeral": "^2.0.5",
|
|
185
|
-
"@types/react": "^18.2.
|
|
186
|
-
"@types/react-dom": "^18.2.
|
|
185
|
+
"@types/react": "^18.2.79",
|
|
186
|
+
"@types/react-dom": "^18.2.25",
|
|
187
187
|
"@types/rtl-detect": "^1.0.3",
|
|
188
188
|
"@types/semver": "^7.5.8",
|
|
189
189
|
"@types/systemjs": "^6.13.5",
|
|
190
190
|
"@types/ua-parser-js": "^0.7.39",
|
|
191
191
|
"@types/uuid": "^9.0.8",
|
|
192
|
-
"@umijs/lint": "^4.1.
|
|
192
|
+
"@umijs/lint": "^4.1.10",
|
|
193
193
|
"@vitest/coverage-v8": "~1.2.2",
|
|
194
194
|
"ajv-keywords": "^5.1.0",
|
|
195
|
-
"commitlint": "^19.2.
|
|
195
|
+
"commitlint": "^19.2.2",
|
|
196
196
|
"consola": "^3.2.3",
|
|
197
197
|
"dpdm": "^3.14.0",
|
|
198
198
|
"eslint": "^8.57.0",
|
|
@@ -200,8 +200,8 @@
|
|
|
200
200
|
"fake-indexeddb": "^5.0.2",
|
|
201
201
|
"glob": "^10.3.12",
|
|
202
202
|
"gray-matter": "^4.0.3",
|
|
203
|
+
"happy-dom": "^14.7.1",
|
|
203
204
|
"husky": "^9.0.11",
|
|
204
|
-
"jsdom": "^24.0.0",
|
|
205
205
|
"just-diff": "^6.0.2",
|
|
206
206
|
"lint-staged": "^15.2.2",
|
|
207
207
|
"lodash": "^4.17.21",
|
|
@@ -215,10 +215,10 @@
|
|
|
215
215
|
"semantic-release": "^21.1.2",
|
|
216
216
|
"stylelint": "^15.11.0",
|
|
217
217
|
"tsx": "^4.7.2",
|
|
218
|
-
"typescript": "^5.4.
|
|
218
|
+
"typescript": "^5.4.5",
|
|
219
219
|
"unified": "^11.0.4",
|
|
220
220
|
"unist-util-visit": "^5.0.0",
|
|
221
|
-
"vite": "^5.2.
|
|
221
|
+
"vite": "^5.2.10",
|
|
222
222
|
"vitest": "~1.2.2",
|
|
223
223
|
"vitest-canvas-mock": "^0.3.3"
|
|
224
224
|
},
|
|
@@ -15,6 +15,18 @@ const Groq: ModelProviderCard = {
|
|
|
15
15
|
id: 'gemma-7b-it',
|
|
16
16
|
tokens: 8192,
|
|
17
17
|
},
|
|
18
|
+
{
|
|
19
|
+
displayName: 'LLaMA3-3-8B',
|
|
20
|
+
enabled: true,
|
|
21
|
+
id: 'llama3-8b-8192',
|
|
22
|
+
tokens: 8192,
|
|
23
|
+
},
|
|
24
|
+
{
|
|
25
|
+
displayName: 'LLaMA3-3-70B',
|
|
26
|
+
enabled: true,
|
|
27
|
+
id: 'llama3-70b-8192',
|
|
28
|
+
tokens: 8192,
|
|
29
|
+
},
|
|
18
30
|
{
|
|
19
31
|
displayName: 'LLaMA2-70b-chat',
|
|
20
32
|
enabled: true,
|
|
@@ -15,6 +15,12 @@ const Mistral: ModelProviderCard = {
|
|
|
15
15
|
id: 'open-mixtral-8x7b',
|
|
16
16
|
tokens: 32_768,
|
|
17
17
|
},
|
|
18
|
+
{
|
|
19
|
+
displayName: 'Mixtral 8x22B',
|
|
20
|
+
enabled: true,
|
|
21
|
+
id: 'open-mixtral-8x22b',
|
|
22
|
+
tokens: 65_536,
|
|
23
|
+
},
|
|
18
24
|
{
|
|
19
25
|
displayName: 'Mistral Small',
|
|
20
26
|
enabled: true,
|
|
@@ -149,9 +149,7 @@ describe('topic action', () => {
|
|
|
149
149
|
});
|
|
150
150
|
|
|
151
151
|
// Check if mutate has been called with the active session ID
|
|
152
|
-
expect(mutate).toHaveBeenCalledWith(['SWR_USE_FETCH_TOPIC', activeId]
|
|
153
|
-
populateCache: false,
|
|
154
|
-
});
|
|
152
|
+
expect(mutate).toHaveBeenCalledWith(['SWR_USE_FETCH_TOPIC', activeId]);
|
|
155
153
|
});
|
|
156
154
|
|
|
157
155
|
it('should handle errors during refreshing topics', async () => {
|
|
@@ -9,7 +9,7 @@ import { StateCreator } from 'zustand/vanilla';
|
|
|
9
9
|
import { chainSummaryTitle } from '@/chains/summaryTitle';
|
|
10
10
|
import { LOADING_FLAT } from '@/const/message';
|
|
11
11
|
import { TraceNameMap } from '@/const/trace';
|
|
12
|
-
import {
|
|
12
|
+
import { useClientDataSWR } from '@/libs/swr';
|
|
13
13
|
import { chatService } from '@/services/chat';
|
|
14
14
|
import { messageService } from '@/services/message';
|
|
15
15
|
import { topicService } from '@/services/topic';
|
|
@@ -29,7 +29,7 @@ const SWR_USE_SEARCH_TOPIC = 'SWR_USE_SEARCH_TOPIC';
|
|
|
29
29
|
export interface ChatTopicAction {
|
|
30
30
|
favoriteTopic: (id: string, favState: boolean) => Promise<void>;
|
|
31
31
|
openNewTopicOrSaveTopic: () => Promise<void>;
|
|
32
|
-
refreshTopic:
|
|
32
|
+
refreshTopic: () => Promise<void>;
|
|
33
33
|
removeAllTopics: () => Promise<void>;
|
|
34
34
|
removeSessionTopics: () => Promise<void>;
|
|
35
35
|
removeTopic: (id: string) => Promise<void>;
|
|
@@ -125,7 +125,7 @@ export const chatTopic: StateCreator<
|
|
|
125
125
|
updateTopicTitleInSummary(topicId, topic.title);
|
|
126
126
|
},
|
|
127
127
|
onFinish: async (text) => {
|
|
128
|
-
topicService.updateTopic(topicId, { title: text });
|
|
128
|
+
await topicService.updateTopic(topicId, { title: text });
|
|
129
129
|
},
|
|
130
130
|
onLoadingChange: (loading) => {
|
|
131
131
|
updateTopicLoading(loading ? topicId : undefined);
|
|
@@ -238,12 +238,7 @@ export const chatTopic: StateCreator<
|
|
|
238
238
|
updateTopicLoading: (id) => {
|
|
239
239
|
set({ topicLoadingId: id }, false, n('updateTopicLoading'));
|
|
240
240
|
},
|
|
241
|
-
|
|
242
|
-
|
|
243
|
-
refreshTopic: async (params) => {
|
|
244
|
-
return mutate([SWR_USE_FETCH_TOPIC, get().activeId], params?.action, {
|
|
245
|
-
optimisticData: params?.optimisticData,
|
|
246
|
-
populateCache: false,
|
|
247
|
-
});
|
|
241
|
+
refreshTopic: async () => {
|
|
242
|
+
return mutate([SWR_USE_FETCH_TOPIC, get().activeId]);
|
|
248
243
|
},
|
|
249
244
|
});
|