@lobehub/chat 1.35.14 → 1.36.0
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/Dockerfile +3 -1
- package/changelog/v1.json +9 -0
- package/package.json +1 -1
- package/src/app/(main)/settings/llm/ProviderList/providers.tsx +3 -1
- package/src/config/llm.ts +8 -1
- package/src/config/modelProviders/higress.ts +2503 -0
- package/src/config/modelProviders/index.ts +4 -0
- package/src/const/settings/llm.ts +1 -2
- package/src/libs/agent-runtime/AgentRuntime.ts +7 -0
- package/src/libs/agent-runtime/higress/index.ts +45 -0
- package/src/libs/agent-runtime/types/type.ts +1 -0
- package/src/types/user/settings/keyVaults.ts +1 -0
package/CHANGELOG.md
CHANGED
@@ -2,6 +2,31 @@
|
|
2
2
|
|
3
3
|
# Changelog
|
4
4
|
|
5
|
+
## [Version 1.36.0](https://github.com/lobehub/lobe-chat/compare/v1.35.14...v1.36.0)
|
6
|
+
|
7
|
+
<sup>Released on **2024-12-06**</sup>
|
8
|
+
|
9
|
+
#### ✨ Features
|
10
|
+
|
11
|
+
- **misc**: Add Higress ai model provider.
|
12
|
+
|
13
|
+
<br/>
|
14
|
+
|
15
|
+
<details>
|
16
|
+
<summary><kbd>Improvements and Fixes</kbd></summary>
|
17
|
+
|
18
|
+
#### What's improved
|
19
|
+
|
20
|
+
- **misc**: Add Higress ai model provider, closes [#4755](https://github.com/lobehub/lobe-chat/issues/4755) ([835bbf6](https://github.com/lobehub/lobe-chat/commit/835bbf6))
|
21
|
+
|
22
|
+
</details>
|
23
|
+
|
24
|
+
<div align="right">
|
25
|
+
|
26
|
+
[](#readme-top)
|
27
|
+
|
28
|
+
</div>
|
29
|
+
|
5
30
|
### [Version 1.35.14](https://github.com/lobehub/lobe-chat/compare/v1.35.13...v1.35.14)
|
6
31
|
|
7
32
|
<sup>Released on **2024-12-06**</sup>
|
package/Dockerfile
CHANGED
package/changelog/v1.json
CHANGED
package/package.json
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
{
|
2
2
|
"name": "@lobehub/chat",
|
3
|
-
"version": "1.
|
3
|
+
"version": "1.36.0",
|
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",
|
@@ -10,6 +10,7 @@ import {
|
|
10
10
|
GiteeAIProviderCard,
|
11
11
|
GoogleProviderCard,
|
12
12
|
GroqProviderCard,
|
13
|
+
HigressProviderCard,
|
13
14
|
HunyuanProviderCard,
|
14
15
|
InternLMProviderCard,
|
15
16
|
MinimaxProviderCard,
|
@@ -38,8 +39,8 @@ import { useGithubProvider } from './Github';
|
|
38
39
|
import { useHuggingFaceProvider } from './HuggingFace';
|
39
40
|
import { useOllamaProvider } from './Ollama';
|
40
41
|
import { useOpenAIProvider } from './OpenAI';
|
41
|
-
import { useWenxinProvider } from './Wenxin';
|
42
42
|
import { useSenseNovaProvider } from './SenseNova';
|
43
|
+
import { useWenxinProvider } from './Wenxin';
|
43
44
|
|
44
45
|
export const useProviderList = (): ProviderItem[] => {
|
45
46
|
const AzureProvider = useAzureProvider();
|
@@ -89,6 +90,7 @@ export const useProviderList = (): ProviderItem[] => {
|
|
89
90
|
TaichuProviderCard,
|
90
91
|
InternLMProviderCard,
|
91
92
|
SiliconCloudProviderCard,
|
93
|
+
HigressProviderCard,
|
92
94
|
GiteeAIProviderCard,
|
93
95
|
],
|
94
96
|
[
|
package/src/config/llm.ts
CHANGED
@@ -121,6 +121,9 @@ export const getLLMConfig = () => {
|
|
121
121
|
|
122
122
|
ENABLED_INTERNLM: z.boolean(),
|
123
123
|
INTERNLM_API_KEY: z.string().optional(),
|
124
|
+
|
125
|
+
ENABLED_HIGRESS: z.boolean(),
|
126
|
+
HIGRESS_API_KEY: z.string().optional(),
|
124
127
|
},
|
125
128
|
runtimeEnv: {
|
126
129
|
API_KEY_SELECT_MODE: process.env.API_KEY_SELECT_MODE,
|
@@ -231,7 +234,8 @@ export const getLLMConfig = () => {
|
|
231
234
|
ENABLED_HUGGINGFACE: !!process.env.HUGGINGFACE_API_KEY,
|
232
235
|
HUGGINGFACE_API_KEY: process.env.HUGGINGFACE_API_KEY,
|
233
236
|
|
234
|
-
ENABLED_SENSENOVA:
|
237
|
+
ENABLED_SENSENOVA:
|
238
|
+
!!process.env.SENSENOVA_ACCESS_KEY_ID && !!process.env.SENSENOVA_ACCESS_KEY_SECRET,
|
235
239
|
SENSENOVA_ACCESS_KEY_ID: process.env.SENSENOVA_ACCESS_KEY_ID,
|
236
240
|
SENSENOVA_ACCESS_KEY_SECRET: process.env.SENSENOVA_ACCESS_KEY_SECRET,
|
237
241
|
|
@@ -240,6 +244,9 @@ export const getLLMConfig = () => {
|
|
240
244
|
|
241
245
|
ENABLED_INTERNLM: !!process.env.INTERNLM_API_KEY,
|
242
246
|
INTERNLM_API_KEY: process.env.INTERNLM_API_KEY,
|
247
|
+
|
248
|
+
ENABLED_HIGRESS: !!process.env.HIGRESS_API_KEY,
|
249
|
+
HIGRESS_API_KEY: process.env.HIGRESS_API_KEY,
|
243
250
|
},
|
244
251
|
});
|
245
252
|
};
|