forked from React-Group/interstellar_ai
import export works again || animation is weird
This commit is contained in:
parent
f94b99d357
commit
0a9472f44f
4 changed files with 153 additions and 125 deletions
|
@ -23,7 +23,7 @@ const InputOutputBackend: React.FC = () => {
|
|||
const [timeZone, setTimeZone] = useState<string>("GMT");
|
||||
const [dateFormat, setDateFormat] = useState<string>("DD-MM-YYYY");
|
||||
const [messages, setMessages] = useState<Message[]>([]);
|
||||
const [myBoolean, setMyBoolean] = useState<boolean>(() => localStorage.getItem('myBoolean') === 'true');
|
||||
const [myBoolean, setMyBoolean] = useState<boolean>(() => localStorage.getItem('myBoolean') === 'true') || false;
|
||||
|
||||
// Fetch local storage values and update state on component mount
|
||||
useEffect(() => {
|
||||
|
@ -50,7 +50,6 @@ const InputOutputBackend: React.FC = () => {
|
|||
You are only able to change language if the user specifically states you must.
|
||||
Do not answer in multiple languages or multiple measurement systems under any circumstances other than the user requesting it.`
|
||||
: "You are a helpful assistant";
|
||||
|
||||
setMessages([
|
||||
{ role: "system", content: systemMessage },
|
||||
{ role: "assistant", content: "Hello! How may I help you?" },
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue