@lobehub/chat 0.147.5 → 0.147.6
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 +25 -0
- package/README.md +8 -8
- package/README.zh-CN.md +8 -8
- package/docs/self-hosting/advanced/sso-providers/authentik.mdx +2 -2
- package/docs/self-hosting/examples/ollama.mdx +3 -3
- package/docs/self-hosting/examples/ollama.zh-CN.mdx +3 -3
- package/package.json +1 -1
- package/src/config/modelProviders/mistral.ts +12 -6
- package/src/config/modelProviders/openai.ts +18 -3
- package/src/libs/agent-runtime/openai/__snapshots__/index.test.ts.snap +0 -2
- package/src/libs/agent-runtime/openrouter/__snapshots__/index.test.ts.snap +1 -1
- package/src/libs/agent-runtime/utils/openaiCompatibleFactory/index.ts +1 -1
- package/src/store/global/slices/settings/selectors/modelProvider.test.ts +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -2,6 +2,31 @@
|
|
|
2
2
|
|
|
3
3
|
# Changelog
|
|
4
4
|
|
|
5
|
+
### [Version 0.147.6](https://github.com/lobehub/lobe-chat/compare/v0.147.5...v0.147.6)
|
|
6
|
+
|
|
7
|
+
<sup>Released on **2024-04-11**</sup>
|
|
8
|
+
|
|
9
|
+
#### 💄 Styles
|
|
10
|
+
|
|
11
|
+
- **misc**: Add GPT-4-turbo and 2024-04-09 Turbo Vision model and mistral new model name.
|
|
12
|
+
|
|
13
|
+
<br/>
|
|
14
|
+
|
|
15
|
+
<details>
|
|
16
|
+
<summary><kbd>Improvements and Fixes</kbd></summary>
|
|
17
|
+
|
|
18
|
+
#### Styles
|
|
19
|
+
|
|
20
|
+
- **misc**: Add GPT-4-turbo and 2024-04-09 Turbo Vision model and mistral new model name, closes [#1984](https://github.com/lobehub/lobe-chat/issues/1984) ([f1795b1](https://github.com/lobehub/lobe-chat/commit/f1795b1))
|
|
21
|
+
|
|
22
|
+
</details>
|
|
23
|
+
|
|
24
|
+
<div align="right">
|
|
25
|
+
|
|
26
|
+
[](#readme-top)
|
|
27
|
+
|
|
28
|
+
</div>
|
|
29
|
+
|
|
5
30
|
### [Version 0.147.5](https://github.com/lobehub/lobe-chat/compare/v0.147.4...v0.147.5)
|
|
6
31
|
|
|
7
32
|
<sup>Released on **2024-04-11**</sup>
|
package/README.md
CHANGED
|
@@ -260,14 +260,14 @@ Our marketplace is not just a showcase platform but also a collaborative space.
|
|
|
260
260
|
|
|
261
261
|
<!-- AGENT LIST -->
|
|
262
262
|
|
|
263
|
-
| Recent Submits
|
|
264
|
-
|
|
|
265
|
-
| [
|
|
266
|
-
| [
|
|
267
|
-
| [
|
|
268
|
-
| [
|
|
269
|
-
|
|
270
|
-
> 📊 Total agents: [<kbd>**
|
|
263
|
+
| Recent Submits | Description |
|
|
264
|
+
| ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
|
|
265
|
+
| [Healthy Recipe Recommender](https://chat-preview.lobehub.com/market?agent=healthy-recipe-recommender)<br/><sup>By **[Greasen](https://github.com/Greasen)** on **2024-04-11**</sup> | Customized nutrition meals, scientific combinations, healthy eating, your personal nutritionist.<br/>`recipes` `fitness-meals` `nutrition-meals` |
|
|
266
|
+
| [SmartWeather Assistant](https://chat-preview.lobehub.com/market?agent=personal-weather-consultant)<br/><sup>By **[Greasen](https://github.com/Greasen)** on **2024-04-11**</sup> | SmartWeather Assistant, your personal weather advisor, fashion guide, and positive energy booster!<br/>`weather` `assistant` `fashion` |
|
|
267
|
+
| [Dirty Talk Learning Assistant](https://chat-preview.lobehub.com/market?agent=profanity-assistant)<br/><sup>By **[cokice](https://github.com/cokice)** on **2024-04-10**</sup> | I only know how to curse, nothing else.<br/>`answer` `dirty-talk` |
|
|
268
|
+
| [TadzGenius](https://chat-preview.lobehub.com/market?agent=tadz-genius)<br/><sup>By **[infoaitek24](https://github.com/infoaitek24)** on **2024-04-10**</sup> | Expert in business development and development practices in the Philippine market<br/>`business-development` `ai-assistant` `market-analysis` `strategic-planning` `customer-acquisition` |
|
|
269
|
+
|
|
270
|
+
> 📊 Total agents: [<kbd>**236**</kbd> ](https://github.com/lobehub/lobe-chat-agents)
|
|
271
271
|
|
|
272
272
|
<!-- AGENT LIST -->
|
|
273
273
|
|
package/README.zh-CN.md
CHANGED
|
@@ -248,14 +248,14 @@ LobeChat 的插件生态系统是其核心功能的重要扩展,它极大地
|
|
|
248
248
|
|
|
249
249
|
<!-- AGENT LIST -->
|
|
250
250
|
|
|
251
|
-
| 最近新增
|
|
252
|
-
|
|
|
253
|
-
| [
|
|
254
|
-
| [
|
|
255
|
-
| [
|
|
256
|
-
| [
|
|
257
|
-
|
|
258
|
-
> 📊 Total agents: [<kbd>**
|
|
251
|
+
| 最近新增 | 助手说明 |
|
|
252
|
+
| ------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
|
|
253
|
+
| [健康食谱推荐师](https://chat-preview.lobehub.com/market?agent=healthy-recipe-recommender)<br/><sup>By **[Greasen](https://github.com/Greasen)** on **2024-04-11**</sup> | 精准定制营养餐,科学搭配,健康饮食,你的私人营养师。<br/>`食谱、健身餐、营养餐` |
|
|
254
|
+
| [智预小助手](https://chat-preview.lobehub.com/market?agent=personal-weather-consultant)<br/><sup>By **[Greasen](https://github.com/Greasen)** on **2024-04-11**</sup> | 智预小助手,您的私人天气顾问,穿搭指南,正能量加油器!<br/>`天气` `助理、穿搭` |
|
|
255
|
+
| [脏话学习助手](https://chat-preview.lobehub.com/market?agent=profanity-assistant)<br/><sup>By **[cokice](https://github.com/cokice)** on **2024-04-10**</sup> | 我只会骂人 别的都不会<br/>`回答` `脏话` |
|
|
256
|
+
| [TadzGenius](https://chat-preview.lobehub.com/market?agent=tadz-genius)<br/><sup>By **[infoaitek24](https://github.com/infoaitek24)** on **2024-04-10**</sup> | Expert in business development and development practices in the Philippine market<br/>`business-development` `ai-assistant` `market-analysis` `strategic-planning` `customer-acquisition` |
|
|
257
|
+
|
|
258
|
+
> 📊 Total agents: [<kbd>**236**</kbd> ](https://github.com/lobehub/lobe-chat-agents)
|
|
259
259
|
|
|
260
260
|
<!-- AGENT LIST -->
|
|
261
261
|
|
|
@@ -37,7 +37,7 @@ https://your-domain/api/auth/callback/authentik
|
|
|
37
37
|
<Image
|
|
38
38
|
alt="Create Authentik Provider"
|
|
39
39
|
inStep
|
|
40
|
-
src="https://github.com/lobehub/lobe-chat/assets/67304509/4244634e-5f68-48d5-aac0-e5f4b06d1c4b
|
|
40
|
+
src="https://github.com/lobehub/lobe-chat/assets/67304509/4244634e-5f68-48d5-aac0-e5f4b06d1c4b"
|
|
41
41
|
/>
|
|
42
42
|
|
|
43
43
|
Click **Done**
|
|
@@ -64,7 +64,7 @@ When deploying LobeChat, you need to configure the following environment variabl
|
|
|
64
64
|
| `NEXTAUTH_URL` | Optional | This URL is used to specify the callback address for Auth.js when performing OAuth authentication. It only needs to be set when the default generated redirect address is incorrect. `https://example.com/api/auth` |
|
|
65
65
|
|
|
66
66
|
<Callout type={'tip'}>
|
|
67
|
-
Go to Environment Variables
|
|
67
|
+
Go to [📘 Environment Variables](/docs/self-hosting/environment-variable#Authentik) for details about the variables.
|
|
68
68
|
|
|
69
69
|
</Callout>
|
|
70
70
|
</Steps>
|
|
@@ -38,9 +38,9 @@ For more information on using Ollama in LobeChat, please refer to [Ollama Usage]
|
|
|
38
38
|
|
|
39
39
|
## Accessing Ollama from Non-Local Locations
|
|
40
40
|
|
|
41
|
-
When you first initiate Ollama, it is configured to allow access only from the local machine. To enable access from other domains and set up port listening, you will need to adjust the environment variables accordingly.
|
|
41
|
+
When you first initiate Ollama, it is configured to allow access only from the local machine. To enable access from other domains and set up port listening, you will need to adjust the environment variables `OLLAMA_ORIGINS` and `OLLAMA_HOST` accordingly.
|
|
42
42
|
```
|
|
43
43
|
set OLLAMA_ORIGINS=*
|
|
44
|
-
set OLLAMA_HOST
|
|
44
|
+
set OLLAMA_HOST=:11434
|
|
45
45
|
```
|
|
46
|
-
For further guidance on configuration, consult the [Ollama Official Documentation](https://
|
|
46
|
+
For further guidance on configuration, consult the [Ollama Official Documentation](https://github.com/ollama/ollama/blob/main/docs/faq.md#how-do-i-configure-ollama-server).
|
|
@@ -34,9 +34,9 @@ docker run -d -p 3210:3210 -e OLLAMA_PROXY_URL=http://host.docker.internal:11434
|
|
|
34
34
|
|
|
35
35
|
## 非本地访问 Ollama
|
|
36
36
|
|
|
37
|
-
由于 Ollama
|
|
37
|
+
由于 Ollama 默认参数在启动时设置了仅本地访问,所以跨域访问以及端口监听需要进行额外的环境变量设置 `OLLAMA_ORIGINS` 和 `OLLAMA_HOST`。
|
|
38
38
|
```
|
|
39
39
|
set OLLAMA_ORIGINS=*
|
|
40
|
-
set OLLAMA_HOST
|
|
40
|
+
set OLLAMA_HOST=:11434
|
|
41
41
|
```
|
|
42
|
-
详细配置方法可以参考 [Ollama 官方文档](https://
|
|
42
|
+
详细配置方法可以参考 [Ollama 官方文档](https://github.com/ollama/ollama/blob/main/docs/faq.md#how-do-i-configure-ollama-server)。
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@lobehub/chat",
|
|
3
|
-
"version": "0.147.
|
|
3
|
+
"version": "0.147.6",
|
|
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,5 +1,6 @@
|
|
|
1
1
|
import { ModelProviderCard } from '@/types/llm';
|
|
2
2
|
|
|
3
|
+
// ref https://docs.mistral.ai/platform/pricing/#chat-completions-api
|
|
3
4
|
const Mistral: ModelProviderCard = {
|
|
4
5
|
chatModels: [
|
|
5
6
|
{
|
|
@@ -15,21 +16,26 @@ const Mistral: ModelProviderCard = {
|
|
|
15
16
|
tokens: 32_768,
|
|
16
17
|
},
|
|
17
18
|
{
|
|
18
|
-
displayName: 'Mistral Small
|
|
19
|
+
displayName: 'Mistral Small',
|
|
19
20
|
enabled: true,
|
|
20
|
-
id: 'mistral-small-
|
|
21
|
+
id: 'mistral-small-latest',
|
|
21
22
|
tokens: 32_768,
|
|
22
23
|
},
|
|
23
24
|
{
|
|
24
|
-
displayName: 'Mistral Medium
|
|
25
|
+
displayName: 'Mistral Medium',
|
|
25
26
|
enabled: true,
|
|
26
|
-
id: 'mistral-medium-
|
|
27
|
+
id: 'mistral-medium-latest',
|
|
27
28
|
tokens: 32_768,
|
|
28
29
|
},
|
|
29
30
|
{
|
|
30
|
-
displayName: 'Mistral Large
|
|
31
|
+
displayName: 'Mistral Large',
|
|
31
32
|
enabled: true,
|
|
32
|
-
id: 'mistral-large-
|
|
33
|
+
id: 'mistral-large-latest',
|
|
34
|
+
tokens: 32_768,
|
|
35
|
+
},
|
|
36
|
+
{
|
|
37
|
+
displayName: 'Mixtral 8x22B',
|
|
38
|
+
id: 'mixtral-8x22b',
|
|
33
39
|
tokens: 32_768,
|
|
34
40
|
},
|
|
35
41
|
],
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { ModelProviderCard } from '@/types/llm';
|
|
2
2
|
|
|
3
|
-
// refs to: https://platform.openai.com/docs/models/gpt-4-and-gpt-4
|
|
3
|
+
// refs to: https://platform.openai.com/docs/models/gpt-4-turbo-and-gpt-4
|
|
4
4
|
const OpenAI: ModelProviderCard = {
|
|
5
5
|
chatModels: [
|
|
6
6
|
{
|
|
@@ -47,7 +47,6 @@ const OpenAI: ModelProviderCard = {
|
|
|
47
47
|
},
|
|
48
48
|
{
|
|
49
49
|
displayName: 'GPT-4 Turbo Preview',
|
|
50
|
-
enabled: true,
|
|
51
50
|
functionCall: true,
|
|
52
51
|
id: 'gpt-4-turbo-preview',
|
|
53
52
|
tokens: 128_000,
|
|
@@ -61,7 +60,6 @@ const OpenAI: ModelProviderCard = {
|
|
|
61
60
|
{
|
|
62
61
|
description: 'GPT-4 视觉预览版,支持视觉任务',
|
|
63
62
|
displayName: 'GPT-4 Turbo Vision Preview',
|
|
64
|
-
enabled: true,
|
|
65
63
|
id: 'gpt-4-vision-preview',
|
|
66
64
|
tokens: 128_000,
|
|
67
65
|
vision: true,
|
|
@@ -102,6 +100,23 @@ const OpenAI: ModelProviderCard = {
|
|
|
102
100
|
id: 'gpt-4-32k-0613',
|
|
103
101
|
tokens: 32_768,
|
|
104
102
|
},
|
|
103
|
+
{
|
|
104
|
+
description: 'GPT-4 Turbo 视觉版',
|
|
105
|
+
displayName: 'GPT-4 Turbo Vision',
|
|
106
|
+
enabled: true,
|
|
107
|
+
functionCall: true,
|
|
108
|
+
id: 'gpt-4-turbo',
|
|
109
|
+
tokens: 128_000,
|
|
110
|
+
vision: true,
|
|
111
|
+
},
|
|
112
|
+
{
|
|
113
|
+
description: 'GPT-4 Turbo 视觉版 (240409)',
|
|
114
|
+
displayName: 'GPT-4 Turbo Vision (240409)',
|
|
115
|
+
functionCall: true,
|
|
116
|
+
id: 'gpt-4-turbo-2024-04-09',
|
|
117
|
+
tokens: 128_000,
|
|
118
|
+
vision: true,
|
|
119
|
+
},
|
|
105
120
|
{
|
|
106
121
|
displayName: 'GPT-4 ALL',
|
|
107
122
|
files: true,
|
|
@@ -38,7 +38,6 @@ exports[`LobeOpenAI > models > should get models 1`] = `
|
|
|
38
38
|
},
|
|
39
39
|
{
|
|
40
40
|
"displayName": "GPT-4 Turbo Preview",
|
|
41
|
-
"enabled": true,
|
|
42
41
|
"functionCall": true,
|
|
43
42
|
"id": "gpt-4-turbo-preview",
|
|
44
43
|
"tokens": 128000,
|
|
@@ -72,7 +71,6 @@ exports[`LobeOpenAI > models > should get models 1`] = `
|
|
|
72
71
|
{
|
|
73
72
|
"description": "GPT-4 视觉预览版,支持视觉任务",
|
|
74
73
|
"displayName": "GPT-4 Turbo Vision Preview",
|
|
75
|
-
"enabled": true,
|
|
76
74
|
"id": "gpt-4-vision-preview",
|
|
77
75
|
"tokens": 128000,
|
|
78
76
|
"vision": true,
|
|
@@ -47,7 +47,7 @@ Updated by OpenAI to point to the [latest version of GPT-3.5](/models?q=openai/g
|
|
|
47
47
|
|
|
48
48
|
#multimodal",
|
|
49
49
|
"displayName": "OpenAI: GPT-4 Vision",
|
|
50
|
-
"enabled":
|
|
50
|
+
"enabled": false,
|
|
51
51
|
"functionCall": false,
|
|
52
52
|
"id": "openai/gpt-4-vision-preview",
|
|
53
53
|
"maxTokens": 4096,
|
|
@@ -29,7 +29,7 @@ describe('modelProviderSelectors', () => {
|
|
|
29
29
|
const s = merge(initialSettingsState, {}) as unknown as GlobalStore;
|
|
30
30
|
|
|
31
31
|
const result = modelProviderSelectors.defaultEnabledProviderModels('openai')(s);
|
|
32
|
-
expect(result).toEqual(['gpt-3.5-turbo', 'gpt-4-turbo
|
|
32
|
+
expect(result).toEqual(['gpt-3.5-turbo', 'gpt-4-turbo']);
|
|
33
33
|
});
|
|
34
34
|
|
|
35
35
|
it('should return undefined for a non-existing provider', () => {
|