@lobehub/chat 1.70.9 → 1.70.10
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
CHANGED
@@ -2,6 +2,31 @@
|
|
2
2
|
|
3
3
|
# Changelog
|
4
4
|
|
5
|
+
### [Version 1.70.10](https://github.com/lobehub/lobe-chat/compare/v1.70.9...v1.70.10)
|
6
|
+
|
7
|
+
<sup>Released on **2025-03-12**</sup>
|
8
|
+
|
9
|
+
#### 🐛 Bug Fixes
|
10
|
+
|
11
|
+
- **misc**: The agent setting `-edit_agent` not work.
|
12
|
+
|
13
|
+
<br/>
|
14
|
+
|
15
|
+
<details>
|
16
|
+
<summary><kbd>Improvements and Fixes</kbd></summary>
|
17
|
+
|
18
|
+
#### What's fixed
|
19
|
+
|
20
|
+
- **misc**: The agent setting `-edit_agent` not work, closes [#4609](https://github.com/lobehub/lobe-chat/issues/4609) ([7af0ec6](https://github.com/lobehub/lobe-chat/commit/7af0ec6))
|
21
|
+
|
22
|
+
</details>
|
23
|
+
|
24
|
+
<div align="right">
|
25
|
+
|
26
|
+
[](#readme-top)
|
27
|
+
|
28
|
+
</div>
|
29
|
+
|
5
30
|
### [Version 1.70.9](https://github.com/lobehub/lobe-chat/compare/v1.70.8...v1.70.9)
|
6
31
|
|
7
32
|
<sup>Released on **2025-03-12**</sup>
|
package/changelog/v1.json
CHANGED
package/package.json
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
{
|
2
2
|
"name": "@lobehub/chat",
|
3
|
-
"version": "1.70.
|
3
|
+
"version": "1.70.10",
|
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",
|
@@ -9,6 +9,7 @@ import { memo } from 'react';
|
|
9
9
|
import { useTranslation } from 'react-i18next';
|
10
10
|
|
11
11
|
import { FORM_STYLE } from '@/const/layoutTokens';
|
12
|
+
import { featureFlagsSelectors, useServerConfigStore } from '@/store/serverConfig';
|
12
13
|
import { INBOX_SESSION_ID } from '@/const/session';
|
13
14
|
|
14
15
|
import { useStore } from '../store';
|
@@ -21,6 +22,8 @@ import BackgroundSwatches from './BackgroundSwatches';
|
|
21
22
|
const AgentMeta = memo(() => {
|
22
23
|
const { t } = useTranslation('setting');
|
23
24
|
|
25
|
+
const { isAgentEditable } = useServerConfigStore(featureFlagsSelectors);
|
26
|
+
|
24
27
|
const [hasSystemRole, updateMeta, autocompleteMeta, autocompleteAllMeta] = useStore((s) => [
|
25
28
|
!!s.config.systemRole,
|
26
29
|
s.setAgentMeta,
|
@@ -139,7 +142,15 @@ const AgentMeta = memo(() => {
|
|
139
142
|
title: t('settingAgent.title'),
|
140
143
|
};
|
141
144
|
|
142
|
-
return
|
145
|
+
return (
|
146
|
+
<Form
|
147
|
+
disabled={!isAgentEditable}
|
148
|
+
items={[metaData]}
|
149
|
+
itemsType={'group'}
|
150
|
+
variant={'pure'}
|
151
|
+
{...FORM_STYLE}
|
152
|
+
/>
|
153
|
+
);
|
143
154
|
});
|
144
155
|
|
145
156
|
export default AgentMeta;
|