@lobehub/chat 0.100.2 → 0.100.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/CHANGELOG.md +25 -0
- package/package.json +1 -1
- package/src/config/client.ts +7 -2
- package/src/const/url.ts +1 -5
package/CHANGELOG.md
CHANGED
|
@@ -2,6 +2,31 @@
|
|
|
2
2
|
|
|
3
3
|
# Changelog
|
|
4
4
|
|
|
5
|
+
### [Version 0.100.3](https://github.com/lobehub/lobe-chat/compare/v0.100.2...v0.100.3)
|
|
6
|
+
|
|
7
|
+
<sup>Released on **2023-11-09**</sup>
|
|
8
|
+
|
|
9
|
+
#### 🐛 Bug Fixes
|
|
10
|
+
|
|
11
|
+
- **misc**: Fix market error.
|
|
12
|
+
|
|
13
|
+
<br/>
|
|
14
|
+
|
|
15
|
+
<details>
|
|
16
|
+
<summary><kbd>Improvements and Fixes</kbd></summary>
|
|
17
|
+
|
|
18
|
+
#### What's fixed
|
|
19
|
+
|
|
20
|
+
- **misc**: Fix market error ([3d7550c](https://github.com/lobehub/lobe-chat/commit/3d7550c))
|
|
21
|
+
|
|
22
|
+
</details>
|
|
23
|
+
|
|
24
|
+
<div align="right">
|
|
25
|
+
|
|
26
|
+
[](#readme-top)
|
|
27
|
+
|
|
28
|
+
</div>
|
|
29
|
+
|
|
5
30
|
### [Version 0.100.2](https://github.com/lobehub/lobe-chat/compare/v0.100.1...v0.100.2)
|
|
6
31
|
|
|
7
32
|
<sup>Released on **2023-11-09**</sup>
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@lobehub/chat",
|
|
3
|
-
"version": "0.100.
|
|
3
|
+
"version": "0.100.3",
|
|
4
4
|
"description": "An open-source, extensible (Function Calling), high-performance chatbot framework. It supports one-click free deployment of your private ChatGPT/LLM web application",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"chatbot",
|
package/src/config/client.ts
CHANGED
|
@@ -33,8 +33,13 @@ declare global {
|
|
|
33
33
|
}
|
|
34
34
|
|
|
35
35
|
export const getClientConfig = () => ({
|
|
36
|
-
AGENTS_INDEX_URL: process.env.AGENTS_INDEX_URL
|
|
37
|
-
|
|
36
|
+
AGENTS_INDEX_URL: !!process.env.AGENTS_INDEX_URL
|
|
37
|
+
? process.env.AGENTS_INDEX_URL
|
|
38
|
+
: 'https://chat-agents.lobehub.com',
|
|
39
|
+
PLUGINS_INDEX_URL: !!process.env.PLUGINS_INDEX_URL
|
|
40
|
+
? process.env.PLUGINS_INDEX_URL
|
|
41
|
+
: 'https://chat-plugins.lobehub.com',
|
|
42
|
+
|
|
38
43
|
// custom model names
|
|
39
44
|
CUSTOM_MODELS: process.env.NEXT_PUBLIC_CUSTOM_MODELS,
|
|
40
45
|
|
package/src/const/url.ts
CHANGED
|
@@ -15,8 +15,7 @@ export const ABOUT = pkg.homepage;
|
|
|
15
15
|
export const FEEDBACK = pkg.bugs.url;
|
|
16
16
|
export const DISCORD = 'https://discord.gg/AYFPHvv2jT';
|
|
17
17
|
|
|
18
|
-
export const PLUGINS_INDEX_URL =
|
|
19
|
-
getClientConfig().PLUGINS_INDEX_URL ?? 'https://chat-plugins.lobehub.com';
|
|
18
|
+
export const { PLUGINS_INDEX_URL, AGENTS_INDEX_URL } = getClientConfig();
|
|
20
19
|
|
|
21
20
|
export const getPluginIndexJSON = (lang: Locales = DEFAULT_LANG, baseUrl = PLUGINS_INDEX_URL) => {
|
|
22
21
|
if (checkLang(lang)) return baseUrl;
|
|
@@ -24,9 +23,6 @@ export const getPluginIndexJSON = (lang: Locales = DEFAULT_LANG, baseUrl = PLUGI
|
|
|
24
23
|
return urlJoin(baseUrl, `index.${lang}.json`);
|
|
25
24
|
};
|
|
26
25
|
|
|
27
|
-
export const AGENTS_INDEX_URL =
|
|
28
|
-
getClientConfig().AGENTS_INDEX_URL ?? 'https://chat-agents.lobehub.com';
|
|
29
|
-
|
|
30
26
|
export const getAgentIndexJSON = (lang: Locales = DEFAULT_LANG, baseUrl = AGENTS_INDEX_URL) => {
|
|
31
27
|
if (checkLang(lang)) return baseUrl;
|
|
32
28
|
|