Help me Lord i have done it again | System Prompt changes
This commit is contained in:
parent
cee17f34e2
commit
d12078b092
3 changed files with 50 additions and 37 deletions
|
@ -189,6 +189,10 @@ const ModelSection: React.FC = () => {
|
|||
localStorage.setItem("model" ,'starcoder2')
|
||||
}
|
||||
|
||||
if (!localStorage.getItem("radioSelection")) {
|
||||
localStorage.setItem("radioSelection" ,'None')
|
||||
}
|
||||
|
||||
const handleStorageChange = () => {
|
||||
setSelectedModelDropdown(localStorage.getItem('selectedModelDropdown') || '');
|
||||
};
|
||||
|
|
|
@ -120,22 +120,22 @@ const Settings: React.FC<{ closeSettings: () => void; accountName: string }> = (
|
|||
const [openai, setOpenai] = useState(() => getComputedStyle(document.documentElement).getPropertyValue('--online-cheap-openai').trim());
|
||||
const [anthropic, setAnthropic] = useState(() => getComputedStyle(document.documentElement).getPropertyValue('--online-cheap-anthropic').trim());
|
||||
const [google, setGoogle] = useState(() => getComputedStyle(document.documentElement).getPropertyValue('--online-cheap-google').trim());
|
||||
|
||||
const [isLoggedIn, setIsLoggedIn] = useState(false);
|
||||
const [myBoolean, setMyBoolean] =useState<boolean | any>(() => getItemFromLocalStorage('myBoolean'));
|
||||
|
||||
const settings = {
|
||||
userPreferences: {
|
||||
activeSection,
|
||||
preferredLanguage,
|
||||
preferredCurrency,
|
||||
preferredMeasurement,
|
||||
dateFormat,
|
||||
timeFormat,
|
||||
timeFormat,
|
||||
timeZone,
|
||||
selectedOption,
|
||||
disableChatHistory,
|
||||
disableAIMemory,
|
||||
openSourceMode,
|
||||
preferredMeasurement,
|
||||
myBoolean
|
||||
},
|
||||
theme: {
|
||||
backgroundColor,
|
||||
|
@ -298,7 +298,6 @@ const Settings: React.FC<{ closeSettings: () => void; accountName: string }> = (
|
|||
];
|
||||
|
||||
const handleLogout = () => {
|
||||
setIsLoggedIn(false);
|
||||
localStorage.clear();
|
||||
alert('Successfully logged out!');
|
||||
window.location.reload();
|
||||
|
@ -405,6 +404,12 @@ const Settings: React.FC<{ closeSettings: () => void; accountName: string }> = (
|
|||
<div className="settings-section">
|
||||
<h2>General Settings</h2>
|
||||
|
||||
<CheckboxSetting
|
||||
label="Activate System prompt settings"
|
||||
checked={myBoolean}
|
||||
setChecked={setMyBoolean}
|
||||
/>
|
||||
|
||||
<DropdownSetting
|
||||
label="Preferred Language"
|
||||
value={preferredLanguage}
|
||||
|
@ -465,6 +470,7 @@ const Settings: React.FC<{ closeSettings: () => void; accountName: string }> = (
|
|||
checked={disableChatHistory}
|
||||
setChecked={setDisableChatHistory}
|
||||
/>
|
||||
|
||||
<CheckboxSetting
|
||||
label="Disable AI Memory"
|
||||
checked={disableAIMemory}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue