Spaces:
Runtime error
Runtime error
refactor: remove profile name input from summarization profile settings
Browse files- src/components/Settings.jsx +1 -16
src/components/Settings.jsx
CHANGED
|
@@ -12,7 +12,6 @@ function Settings({
|
|
| 12 |
const [localProfiles, setLocalProfiles] = useState(profiles);
|
| 13 |
const [localSummarizationProfile, setLocalSummarizationProfile] = useState(summarizationProfile || {
|
| 14 |
id: 'default-summarization-profile',
|
| 15 |
-
name: 'Summarization Profile',
|
| 16 |
apiEndpoint: '',
|
| 17 |
apiKey: '',
|
| 18 |
model: 'DeepSeek-R1'
|
|
@@ -113,19 +112,6 @@ function Settings({
|
|
| 113 |
<div className="profiles-section">
|
| 114 |
<h3>Summarization Profile</h3>
|
| 115 |
<div className="current-profile-section">
|
| 116 |
-
<div className="setting-item">
|
| 117 |
-
<label>Profile Name:</label>
|
| 118 |
-
<input
|
| 119 |
-
type="text"
|
| 120 |
-
value={localSummarizationProfile.name}
|
| 121 |
-
onChange={(e) => handleSummarizationProfileChange({
|
| 122 |
-
...localSummarizationProfile,
|
| 123 |
-
name: e.target.value
|
| 124 |
-
})}
|
| 125 |
-
placeholder="Enter profile name"
|
| 126 |
-
/>
|
| 127 |
-
</div>
|
| 128 |
-
|
| 129 |
<div className="setting-item">
|
| 130 |
<label>API Endpoint:</label>
|
| 131 |
<input
|
|
@@ -179,8 +165,7 @@ function Settings({
|
|
| 179 |
value={editingProfile.name}
|
| 180 |
onChange={(e) => handleProfileChange({
|
| 181 |
...editingProfile,
|
| 182 |
-
|
| 183 |
-
})}
|
| 184 |
placeholder="Enter profile name"
|
| 185 |
/>
|
| 186 |
</div>
|
|
|
|
| 12 |
const [localProfiles, setLocalProfiles] = useState(profiles);
|
| 13 |
const [localSummarizationProfile, setLocalSummarizationProfile] = useState(summarizationProfile || {
|
| 14 |
id: 'default-summarization-profile',
|
|
|
|
| 15 |
apiEndpoint: '',
|
| 16 |
apiKey: '',
|
| 17 |
model: 'DeepSeek-R1'
|
|
|
|
| 112 |
<div className="profiles-section">
|
| 113 |
<h3>Summarization Profile</h3>
|
| 114 |
<div className="current-profile-section">
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 115 |
<div className="setting-item">
|
| 116 |
<label>API Endpoint:</label>
|
| 117 |
<input
|
|
|
|
| 165 |
value={editingProfile.name}
|
| 166 |
onChange={(e) => handleProfileChange({
|
| 167 |
...editingProfile,
|
| 168 |
+
})}
|
|
|
|
| 169 |
placeholder="Enter profile name"
|
| 170 |
/>
|
| 171 |
</div>
|