@lobehub/chat 1.53.2 → 1.53.3
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/.env.example +5 -0
- package/CHANGELOG.md +25 -0
- package/Dockerfile +3 -1
- package/Dockerfile.database +3 -1
- package/changelog/v1.json +9 -0
- package/package.json +1 -1
- package/src/config/llm.ts +6 -0
- package/src/server/modules/AgentRuntime/index.ts +8 -0
package/.env.example
CHANGED
@@ -122,6 +122,11 @@ OPENAI_API_KEY=sk-xxxxxxxxx
|
|
122
122
|
|
123
123
|
# SILICONCLOUD_API_KEY=sk-xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
|
124
124
|
|
125
|
+
|
126
|
+
### TencentCloud AI ####
|
127
|
+
|
128
|
+
# TENCENT_CLOUD_API_KEY=sk-xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
|
129
|
+
|
125
130
|
########################################
|
126
131
|
############ Market Service ############
|
127
132
|
########################################
|
package/CHANGELOG.md
CHANGED
@@ -2,6 +2,31 @@
|
|
2
2
|
|
3
3
|
# Changelog
|
4
4
|
|
5
|
+
### [Version 1.53.3](https://github.com/lobehub/lobe-chat/compare/v1.53.2...v1.53.3)
|
6
|
+
|
7
|
+
<sup>Released on **2025-02-12**</sup>
|
8
|
+
|
9
|
+
#### 🐛 Bug Fixes
|
10
|
+
|
11
|
+
- **misc**: Fix tencent cloud api issue.
|
12
|
+
|
13
|
+
<br/>
|
14
|
+
|
15
|
+
<details>
|
16
|
+
<summary><kbd>Improvements and Fixes</kbd></summary>
|
17
|
+
|
18
|
+
#### What's fixed
|
19
|
+
|
20
|
+
- **misc**: Fix tencent cloud api issue, closes [#6058](https://github.com/lobehub/lobe-chat/issues/6058) ([025d0bc](https://github.com/lobehub/lobe-chat/commit/025d0bc))
|
21
|
+
|
22
|
+
</details>
|
23
|
+
|
24
|
+
<div align="right">
|
25
|
+
|
26
|
+
[](#readme-top)
|
27
|
+
|
28
|
+
</div>
|
29
|
+
|
5
30
|
### [Version 1.53.2](https://github.com/lobehub/lobe-chat/compare/v1.53.1...v1.53.2)
|
6
31
|
|
7
32
|
<sup>Released on **2025-02-12**</sup>
|
package/Dockerfile
CHANGED
@@ -222,7 +222,9 @@ ENV \
|
|
222
222
|
# 01.AI
|
223
223
|
ZEROONE_API_KEY="" ZEROONE_MODEL_LIST="" \
|
224
224
|
# Zhipu
|
225
|
-
ZHIPU_API_KEY="" ZHIPU_MODEL_LIST=""
|
225
|
+
ZHIPU_API_KEY="" ZHIPU_MODEL_LIST="" \
|
226
|
+
# Tencent Cloud
|
227
|
+
TENCENT_CLOUD_API_KEY="" TENCENT_CLOUD_MODEL_LIST=""
|
226
228
|
|
227
229
|
USER nextjs
|
228
230
|
|
package/Dockerfile.database
CHANGED
@@ -259,7 +259,9 @@ ENV \
|
|
259
259
|
# 01.AI
|
260
260
|
ZEROONE_API_KEY="" ZEROONE_MODEL_LIST="" \
|
261
261
|
# Zhipu
|
262
|
-
ZHIPU_API_KEY="" ZHIPU_MODEL_LIST=""
|
262
|
+
ZHIPU_API_KEY="" ZHIPU_MODEL_LIST="" \
|
263
|
+
# Tencent Cloud
|
264
|
+
TENCENT_CLOUD_API_KEY="" TENCENT_CLOUD_MODEL_LIST=""
|
263
265
|
|
264
266
|
USER nextjs
|
265
267
|
|
package/changelog/v1.json
CHANGED
package/package.json
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
{
|
2
2
|
"name": "@lobehub/chat",
|
3
|
-
"version": "1.53.
|
3
|
+
"version": "1.53.3",
|
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",
|
package/src/config/llm.ts
CHANGED
@@ -125,6 +125,9 @@ export const getLLMConfig = () => {
|
|
125
125
|
|
126
126
|
ENABLED_DOUBAO: z.boolean(),
|
127
127
|
DOUBAO_API_KEY: z.string().optional(),
|
128
|
+
|
129
|
+
ENABLED_TENCENT_CLOUD: z.boolean(),
|
130
|
+
TENCENT_CLOUD_API_KEY: z.string().optional(),
|
128
131
|
},
|
129
132
|
runtimeEnv: {
|
130
133
|
API_KEY_SELECT_MODE: process.env.API_KEY_SELECT_MODE,
|
@@ -248,6 +251,9 @@ export const getLLMConfig = () => {
|
|
248
251
|
|
249
252
|
ENABLED_DOUBAO: !!process.env.DOUBAO_API_KEY,
|
250
253
|
DOUBAO_API_KEY: process.env.DOUBAO_API_KEY,
|
254
|
+
|
255
|
+
ENABLED_TENCENT_CLOUD: !!process.env.TENCENT_CLOUD_API_KEY,
|
256
|
+
TENCENT_CLOUD_API_KEY: process.env.TENCENT_CLOUD_API_KEY,
|
251
257
|
},
|
252
258
|
});
|
253
259
|
};
|
@@ -100,6 +100,14 @@ const getLlmOptionsFromPayload = (provider: string, payload: JWTPayload) => {
|
|
100
100
|
|
101
101
|
return { apiKey };
|
102
102
|
}
|
103
|
+
|
104
|
+
case ModelProvider.TencentCloud: {
|
105
|
+
const { TENCENT_CLOUD_API_KEY } = llmConfig;
|
106
|
+
|
107
|
+
const apiKey = apiKeyManager.pick(payload?.apiKey || TENCENT_CLOUD_API_KEY);
|
108
|
+
|
109
|
+
return { apiKey };
|
110
|
+
}
|
103
111
|
}
|
104
112
|
};
|
105
113
|
|