@lobehub/chat 1.53.1 → 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 +50 -0
- package/Dockerfile +3 -1
- package/Dockerfile.database +3 -1
- package/README.ja-JP.md +2 -2
- package/README.md +2 -2
- package/README.zh-CN.md +2 -2
- package/README.zh-TW.md +2 -2
- package/changelog/v1.json +18 -0
- package/contributing/Others/Lighthouse.md +13 -40
- package/contributing/Others/Lighthouse.zh-CN.md +12 -41
- package/package.json +1 -1
- package/src/config/llm.ts +6 -0
- package/src/config/modelProviders/openrouter.ts +16 -11
- 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,56 @@
|
|
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
|
+
|
30
|
+
### [Version 1.53.2](https://github.com/lobehub/lobe-chat/compare/v1.53.1...v1.53.2)
|
31
|
+
|
32
|
+
<sup>Released on **2025-02-12**</sup>
|
33
|
+
|
34
|
+
#### 🐛 Bug Fixes
|
35
|
+
|
36
|
+
- **misc**: Disable openrouter client fetch.
|
37
|
+
|
38
|
+
<br/>
|
39
|
+
|
40
|
+
<details>
|
41
|
+
<summary><kbd>Improvements and Fixes</kbd></summary>
|
42
|
+
|
43
|
+
#### What's fixed
|
44
|
+
|
45
|
+
- **misc**: Disable openrouter client fetch, closes [#6043](https://github.com/lobehub/lobe-chat/issues/6043) ([63b22ce](https://github.com/lobehub/lobe-chat/commit/63b22ce))
|
46
|
+
|
47
|
+
</details>
|
48
|
+
|
49
|
+
<div align="right">
|
50
|
+
|
51
|
+
[](#readme-top)
|
52
|
+
|
53
|
+
</div>
|
54
|
+
|
5
55
|
### [Version 1.53.1](https://github.com/lobehub/lobe-chat/compare/v1.53.0...v1.53.1)
|
6
56
|
|
7
57
|
<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/README.ja-JP.md
CHANGED
@@ -711,9 +711,9 @@ This project is [Apache 2.0](./LICENSE) licensed.
|
|
711
711
|
[blog]: https://lobehub.com/blog
|
712
712
|
[changelog]: https://lobehub.com/changelog
|
713
713
|
[chat-desktop]: https://raw.githubusercontent.com/lobehub/lobe-chat/lighthouse/lighthouse/chat/desktop/pagespeed.svg
|
714
|
-
[chat-desktop-report]: https://lobehub.github.io/lobe-chat/lighthouse/chat/desktop/
|
714
|
+
[chat-desktop-report]: https://lobehub.github.io/lobe-chat/lighthouse/chat/desktop/lobechat_com_chat.html
|
715
715
|
[chat-mobile]: https://raw.githubusercontent.com/lobehub/lobe-chat/lighthouse/lighthouse/chat/mobile/pagespeed.svg
|
716
|
-
[chat-mobile-report]: https://lobehub.github.io/lobe-chat/lighthouse/chat/mobile/
|
716
|
+
[chat-mobile-report]: https://lobehub.github.io/lobe-chat/lighthouse/chat/mobile/lobechat_com_chat.html
|
717
717
|
[chat-plugin-sdk]: https://github.com/lobehub/chat-plugin-sdk
|
718
718
|
[chat-plugin-template]: https://github.com/lobehub/chat-plugin-template
|
719
719
|
[chat-plugins-gateway]: https://github.com/lobehub/chat-plugins-gateway
|
package/README.md
CHANGED
@@ -728,9 +728,9 @@ This project is [Apache 2.0](./LICENSE) licensed.
|
|
728
728
|
[blog]: https://lobehub.com/blog
|
729
729
|
[changelog]: https://lobehub.com/changelog
|
730
730
|
[chat-desktop]: https://raw.githubusercontent.com/lobehub/lobe-chat/lighthouse/lighthouse/chat/desktop/pagespeed.svg
|
731
|
-
[chat-desktop-report]: https://lobehub.github.io/lobe-chat/lighthouse/chat/desktop/
|
731
|
+
[chat-desktop-report]: https://lobehub.github.io/lobe-chat/lighthouse/chat/desktop/lobechat_com_chat.html
|
732
732
|
[chat-mobile]: https://raw.githubusercontent.com/lobehub/lobe-chat/lighthouse/lighthouse/chat/mobile/pagespeed.svg
|
733
|
-
[chat-mobile-report]: https://lobehub.github.io/lobe-chat/lighthouse/chat/mobile/
|
733
|
+
[chat-mobile-report]: https://lobehub.github.io/lobe-chat/lighthouse/chat/mobile/lobechat_com_chat.html
|
734
734
|
[chat-plugin-sdk]: https://github.com/lobehub/chat-plugin-sdk
|
735
735
|
[chat-plugin-template]: https://github.com/lobehub/chat-plugin-template
|
736
736
|
[chat-plugins-gateway]: https://github.com/lobehub/chat-plugins-gateway
|
package/README.zh-CN.md
CHANGED
@@ -750,9 +750,9 @@ This project is [Apache 2.0](./LICENSE) licensed.
|
|
750
750
|
[blog]: https://lobehub.com/zh/blog
|
751
751
|
[changelog]: https://lobehub.com/changelog
|
752
752
|
[chat-desktop]: https://raw.githubusercontent.com/lobehub/lobe-chat/lighthouse/lighthouse/chat/desktop/pagespeed.svg
|
753
|
-
[chat-desktop-report]: https://lobehub.github.io/lobe-chat/lighthouse/chat/desktop/
|
753
|
+
[chat-desktop-report]: https://lobehub.github.io/lobe-chat/lighthouse/chat/desktop/lobechat_com_chat.html
|
754
754
|
[chat-mobile]: https://raw.githubusercontent.com/lobehub/lobe-chat/lighthouse/lighthouse/chat/mobile/pagespeed.svg
|
755
|
-
[chat-mobile-report]: https://lobehub.github.io/lobe-chat/lighthouse/chat/mobile/
|
755
|
+
[chat-mobile-report]: https://lobehub.github.io/lobe-chat/lighthouse/chat/mobile/lobechat_com_chat.html
|
756
756
|
[chat-plugin-sdk]: https://github.com/lobehub/chat-plugin-sdk
|
757
757
|
[chat-plugin-template]: https://github.com/lobehub/chat-plugin-template
|
758
758
|
[chat-plugins-gateway]: https://github.com/lobehub/chat-plugins-gateway
|
package/README.zh-TW.md
CHANGED
@@ -755,9 +755,9 @@ This project is [Apache 2.0](./LICENSE) licensed.
|
|
755
755
|
[blog]: https://lobehub.com/zh/blog
|
756
756
|
[changelog]: https://lobehub.com/changelog
|
757
757
|
[chat-desktop]: https://raw.githubusercontent.com/lobehub/lobe-chat/lighthouse/lighthouse/chat/desktop/pagespeed.svg
|
758
|
-
[chat-desktop-report]: https://lobehub.github.io/lobe-chat/lighthouse/chat/desktop/
|
758
|
+
[chat-desktop-report]: https://lobehub.github.io/lobe-chat/lighthouse/chat/desktop/lobechat_com_chat.html
|
759
759
|
[chat-mobile]: https://raw.githubusercontent.com/lobehub/lobe-chat/lighthouse/lighthouse/chat/mobile/pagespeed.svg
|
760
|
-
[chat-mobile-report]: https://lobehub.github.io/lobe-chat/lighthouse/chat/mobile/
|
760
|
+
[chat-mobile-report]: https://lobehub.github.io/lobe-chat/lighthouse/chat/mobile/lobechat_com_chat.html
|
761
761
|
[chat-plugin-sdk]: https://github.com/lobehub/chat-plugin-sdk
|
762
762
|
[chat-plugin-template]: https://github.com/lobehub/chat-plugin-template
|
763
763
|
[chat-plugins-gateway]: https://github.com/lobehub/chat-plugins-gateway
|
package/changelog/v1.json
CHANGED
@@ -1,4 +1,22 @@
|
|
1
1
|
[
|
2
|
+
{
|
3
|
+
"children": {
|
4
|
+
"fixes": [
|
5
|
+
"Fix tencent cloud api issue."
|
6
|
+
]
|
7
|
+
},
|
8
|
+
"date": "2025-02-12",
|
9
|
+
"version": "1.53.3"
|
10
|
+
},
|
11
|
+
{
|
12
|
+
"children": {
|
13
|
+
"fixes": [
|
14
|
+
"Disable openrouter client fetch."
|
15
|
+
]
|
16
|
+
},
|
17
|
+
"date": "2025-02-12",
|
18
|
+
"version": "1.53.2"
|
19
|
+
},
|
2
20
|
{
|
3
21
|
"children": {
|
4
22
|
"fixes": [
|
@@ -2,64 +2,37 @@
|
|
2
2
|
|
3
3
|
#### TOC
|
4
4
|
|
5
|
-
- [Welcome Page](#welcome-page)
|
6
5
|
- [Chat Page](#chat-page)
|
7
|
-
- [
|
8
|
-
- [Settings Page](#settings-page)
|
9
|
-
|
10
|
-
## Welcome Page
|
11
|
-
|
12
|
-
> **Info**\
|
13
|
-
> <https://chat-preview.lobehub.com/welcome>
|
14
|
-
|
15
|
-
| Desktop | Mobile |
|
16
|
-
| :---------------------------------------------: | :--------------------------------------------: |
|
17
|
-
| ![][welcome-desktop] | ![][welcome-mobile] |
|
18
|
-
| [⚡️ Lighthouse Report][welcome-desktop-report] | [⚡️ Lighthouse Report][welcome-mobile-report] |
|
6
|
+
- [Discover Page](#discover-page)
|
19
7
|
|
20
8
|
## Chat Page
|
21
9
|
|
22
10
|
> **Info**\
|
23
|
-
> <https://
|
11
|
+
> <https://lobechat.com/chat>
|
24
12
|
|
25
13
|
| Desktop | Mobile |
|
26
14
|
| :------------------------------------------: | :-----------------------------------------: |
|
27
15
|
| ![][chat-desktop] | ![][chat-mobile] |
|
28
16
|
| [⚡️ Lighthouse Report][chat-desktop-report] | [⚡️ Lighthouse Report][chat-mobile-report] |
|
29
17
|
|
30
|
-
|
18
|
+
|
19
|
+
## Discover Page
|
31
20
|
|
32
21
|
> **Info**\
|
33
|
-
> <https://
|
22
|
+
> <https://lobechat.com/discover>
|
34
23
|
|
35
24
|
| Desktop | Mobile |
|
36
25
|
| :--------------------------------------------: | :-------------------------------------------: |
|
37
|
-
| ![][
|
38
|
-
| [⚡️ Lighthouse Report][
|
39
|
-
|
40
|
-
## Settings Page
|
26
|
+
| ![][discover-desktop] | ![][discover-mobile] |
|
27
|
+
| [⚡️ Lighthouse Report][discover-desktop-report] | [⚡️ Lighthouse Report][discover-mobile-report] |
|
41
28
|
|
42
|
-
> **Info**\
|
43
|
-
> <https://chat-preview.lobehub.com/settings>
|
44
29
|
|
45
|
-
| Desktop | Mobile |
|
46
|
-
| :----------------------------------------------: | :---------------------------------------------: |
|
47
|
-
| ![][settings-desktop] | ![][settings-mobile] |
|
48
|
-
| [⚡️ Lighthouse Report][settings-desktop-report] | [⚡️ Lighthouse Report][settings-mobile-report] |
|
49
30
|
|
50
31
|
[chat-desktop]: https://raw.githubusercontent.com/lobehub/lobe-chat/lighthouse/lighthouse/chat/desktop/pagespeed.svg
|
51
|
-
[chat-desktop-report]: https://lobehub.github.io/lobe-chat/lighthouse/chat/desktop/
|
32
|
+
[chat-desktop-report]: https://lobehub.github.io/lobe-chat/lighthouse/chat/desktop/lobechat_com_chat.html
|
52
33
|
[chat-mobile]: https://raw.githubusercontent.com/lobehub/lobe-chat/lighthouse/lighthouse/chat/mobile/pagespeed.svg
|
53
|
-
[chat-mobile-report]: https://lobehub.github.io/lobe-chat/lighthouse/chat/mobile/
|
54
|
-
[
|
55
|
-
[
|
56
|
-
[
|
57
|
-
[
|
58
|
-
[settings-desktop]: https://raw.githubusercontent.com/lobehub/lobe-chat/lighthouse/lighthouse/settings/desktop/pagespeed.svg
|
59
|
-
[settings-desktop-report]: https://lobehub.github.io/lobe-chat/lighthouse/settings/desktop/chat_preview_lobehub_com_settings.html
|
60
|
-
[settings-mobile]: https://raw.githubusercontent.com/lobehub/lobe-chat/lighthouse/lighthouse/settings/mobile/pagespeed.svg
|
61
|
-
[settings-mobile-report]: https://lobehub.github.io/lobe-chat/lighthouse/settings/mobile/chat_preview_lobehub_com_settings.html
|
62
|
-
[welcome-desktop]: https://raw.githubusercontent.com/lobehub/lobe-chat/lighthouse/lighthouse/welcome/desktop/pagespeed.svg
|
63
|
-
[welcome-desktop-report]: https://lobehub.github.io/lobe-chat/lighthouse/welcome/desktop/chat_preview_lobehub_com_welcome.html
|
64
|
-
[welcome-mobile]: https://raw.githubusercontent.com/lobehub/lobe-chat/lighthouse/lighthouse/welcome/mobile/pagespeed.svg
|
65
|
-
[welcome-mobile-report]: https://lobehub.github.io/lobe-chat/lighthouse/welcome/mobile/chat_preview_lobehub_com_welcome.html
|
34
|
+
[chat-mobile-report]: https://lobehub.github.io/lobe-chat/lighthouse/chat/mobile/lobechat_com_chat.html
|
35
|
+
[discover-desktop]: https://raw.githubusercontent.com/lobehub/lobe-chat/lighthouse/lighthouse/discover/desktop/pagespeed.svg
|
36
|
+
[discover-desktop-report]: https://lobehub.github.io/lobe-chat/lighthouse/discover/desktop/lobechat_com_discover.html
|
37
|
+
[discover-mobile]: https://raw.githubusercontent.com/lobehub/lobe-chat/lighthouse/lighthouse/discover/mobile/pagespeed.svg
|
38
|
+
[discover-mobile-report]: https://lobehub.github.io/lobe-chat/lighthouse/discover/mobile/lobechat_com_discover.html
|
@@ -2,64 +2,35 @@
|
|
2
2
|
|
3
3
|
#### TOC
|
4
4
|
|
5
|
-
- [Welcome 欢迎页面](#welcome-欢迎页面)
|
6
5
|
- [Chat 聊天页面](#chat-聊天页面)
|
7
|
-
- [
|
8
|
-
- [Settings 设置页面](#settings-设置页面)
|
9
|
-
|
10
|
-
## Welcome 欢迎页面
|
11
|
-
|
12
|
-
> **Info**\
|
13
|
-
> <https://chat-preview.lobehub.com/welcome>
|
14
|
-
|
15
|
-
| Desktop | Mobile |
|
16
|
-
| :---------------------------------------------: | :--------------------------------------------: |
|
17
|
-
| ![][welcome-desktop] | ![][welcome-mobile] |
|
18
|
-
| [⚡️ Lighthouse Report][welcome-desktop-report] | [⚡️ Lighthouse Report][welcome-mobile-report] |
|
6
|
+
- [Discover 市场页面](#discover-市场页面)
|
19
7
|
|
20
8
|
## Chat 聊天页面
|
21
9
|
|
22
10
|
> **Info**\
|
23
|
-
> <https://
|
11
|
+
> <https://lobechat.com/chat>
|
24
12
|
|
25
13
|
| Desktop | Mobile |
|
26
14
|
| :------------------------------------------: | :-----------------------------------------: |
|
27
15
|
| ![][chat-desktop] | ![][chat-mobile] |
|
28
16
|
| [⚡️ Lighthouse Report][chat-desktop-report] | [⚡️ Lighthouse Report][chat-mobile-report] |
|
29
17
|
|
30
|
-
##
|
18
|
+
## Discover 发现页面
|
31
19
|
|
32
20
|
> **Info**\
|
33
|
-
> <https://
|
21
|
+
> <https://lobechat.com/discover>
|
34
22
|
|
35
23
|
| Desktop | Mobile |
|
36
24
|
| :--------------------------------------------: | :-------------------------------------------: |
|
37
|
-
| ![][
|
38
|
-
| [⚡️ Lighthouse Report][
|
39
|
-
|
40
|
-
## Settings 设置页面
|
41
|
-
|
42
|
-
> **Info**\
|
43
|
-
> <https://chat-preview.lobehub.com/settings>
|
25
|
+
| ![][discover-desktop] | ![][discover-mobile] |
|
26
|
+
| [⚡️ Lighthouse Report][discover-desktop-report] | [⚡️ Lighthouse Report][discover-mobile-report] |
|
44
27
|
|
45
|
-
| Desktop | Mobile |
|
46
|
-
| :----------------------------------------------: | :---------------------------------------------: |
|
47
|
-
| ![][settings-desktop] | ![][settings-mobile] |
|
48
|
-
| [⚡️ Lighthouse Report][settings-desktop-report] | [⚡️ Lighthouse Report][settings-mobile-report] |
|
49
28
|
|
50
29
|
[chat-desktop]: https://raw.githubusercontent.com/lobehub/lobe-chat/lighthouse/lighthouse/chat/desktop/pagespeed.svg
|
51
|
-
[chat-desktop-report]: https://lobehub.github.io/lobe-chat/lighthouse/chat/desktop/
|
30
|
+
[chat-desktop-report]: https://lobehub.github.io/lobe-chat/lighthouse/chat/desktop/lobechat_com_chat.html
|
52
31
|
[chat-mobile]: https://raw.githubusercontent.com/lobehub/lobe-chat/lighthouse/lighthouse/chat/mobile/pagespeed.svg
|
53
|
-
[chat-mobile-report]: https://lobehub.github.io/lobe-chat/lighthouse/chat/mobile/
|
54
|
-
[
|
55
|
-
[
|
56
|
-
[
|
57
|
-
[
|
58
|
-
[settings-desktop]: https://raw.githubusercontent.com/lobehub/lobe-chat/lighthouse/lighthouse/settings/desktop/pagespeed.svg
|
59
|
-
[settings-desktop-report]: https://lobehub.github.io/lobe-chat/lighthouse/settings/desktop/chat_preview_lobehub_com_settings.html
|
60
|
-
[settings-mobile]: https://raw.githubusercontent.com/lobehub/lobe-chat/lighthouse/lighthouse/settings/mobile/pagespeed.svg
|
61
|
-
[settings-mobile-report]: https://lobehub.github.io/lobe-chat/lighthouse/settings/mobile/chat_preview_lobehub_com_settings.html
|
62
|
-
[welcome-desktop]: https://raw.githubusercontent.com/lobehub/lobe-chat/lighthouse/lighthouse/welcome/desktop/pagespeed.svg
|
63
|
-
[welcome-desktop-report]: https://lobehub.github.io/lobe-chat/lighthouse/welcome/desktop/chat_preview_lobehub_com_welcome.html
|
64
|
-
[welcome-mobile]: https://raw.githubusercontent.com/lobehub/lobe-chat/lighthouse/lighthouse/welcome/mobile/pagespeed.svg
|
65
|
-
[welcome-mobile-report]: https://lobehub.github.io/lobe-chat/lighthouse/welcome/mobile/chat_preview_lobehub_com_welcome.html
|
32
|
+
[chat-mobile-report]: https://lobehub.github.io/lobe-chat/lighthouse/chat/mobile/lobechat_com_chat.html
|
33
|
+
[discover-desktop]: https://raw.githubusercontent.com/lobehub/lobe-chat/lighthouse/lighthouse/discover/desktop/pagespeed.svg
|
34
|
+
[discover-desktop-report]: https://lobehub.github.io/lobe-chat/lighthouse/discover/desktop/lobechat_com_discover.html
|
35
|
+
[discover-mobile]: https://raw.githubusercontent.com/lobehub/lobe-chat/lighthouse/lighthouse/discover/mobile/pagespeed.svg
|
36
|
+
[discover-mobile-report]: https://lobehub.github.io/lobe-chat/lighthouse/discover/mobile/lobechat_com_discover.html
|
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
|
};
|
@@ -172,19 +172,20 @@ const OpenRouter: ModelProviderCard = {
|
|
172
172
|
},
|
173
173
|
{
|
174
174
|
contextWindowTokens: 1_048_576 + 8192,
|
175
|
-
description:
|
176
|
-
|
175
|
+
description:
|
176
|
+
'Gemini 2.0 Flash 提供下一代功能和改进,包括卓越的速度、原生工具使用、多模态生成和1M令牌上下文窗口。',
|
177
|
+
displayName: 'Gemini 2.0 Flash',
|
177
178
|
enabled: true,
|
178
179
|
functionCall: true,
|
179
|
-
id:
|
180
|
+
id: 'google/gemini-2.0-flash-001',
|
180
181
|
maxOutput: 8192,
|
181
182
|
pricing: {
|
182
183
|
cachedInput: 0.025,
|
183
184
|
input: 0.1,
|
184
|
-
output: 0.4
|
185
|
+
output: 0.4,
|
185
186
|
},
|
186
|
-
releasedAt:
|
187
|
-
vision: true
|
187
|
+
releasedAt: '2025-02-05',
|
188
|
+
vision: true,
|
188
189
|
},
|
189
190
|
{
|
190
191
|
contextWindowTokens: 2_000_000 + 8192,
|
@@ -298,14 +299,15 @@ const OpenRouter: ModelProviderCard = {
|
|
298
299
|
},
|
299
300
|
{
|
300
301
|
contextWindowTokens: 2_097_152 + 8192,
|
301
|
-
description:
|
302
|
-
|
302
|
+
description:
|
303
|
+
'Gemini 2.0 Pro Experimental 是 Google 最新的实验性多模态AI模型,与历史版本相比有一定的质量提升,特别是对于世界知识、代码和长上下文。',
|
304
|
+
displayName: 'Gemini 2.0 Pro Experimental 02-05 (Free)',
|
303
305
|
enabled: true,
|
304
306
|
functionCall: true,
|
305
|
-
id:
|
307
|
+
id: 'google/gemini-2.0-pro-exp-02-05:free',
|
306
308
|
maxOutput: 8192,
|
307
|
-
releasedAt:
|
308
|
-
vision: true
|
309
|
+
releasedAt: '2025-02-05',
|
310
|
+
vision: true,
|
309
311
|
},
|
310
312
|
],
|
311
313
|
checkModel: 'google/gemma-2-9b-it:free',
|
@@ -316,6 +318,9 @@ const OpenRouter: ModelProviderCard = {
|
|
316
318
|
modelsUrl: 'https://openrouter.ai/models',
|
317
319
|
name: 'OpenRouter',
|
318
320
|
settings: {
|
321
|
+
// OpenRouter don't support browser request
|
322
|
+
// https://github.com/lobehub/lobe-chat/issues/5900
|
323
|
+
disableBrowserRequest: true,
|
319
324
|
sdkType: 'openai',
|
320
325
|
showModelFetcher: true,
|
321
326
|
},
|
@@ -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
|
|