forked from React-Group/interstellar_ai
Merge branch 'main' of interstellardevelopment.org:YasinOnm08/interstellar_ai
This commit is contained in:
commit
5b7fd05a02
4 changed files with 9 additions and 5 deletions
|
@ -22,7 +22,7 @@ const ConversationFrontend = React.forwardRef<HTMLDivElement, ConversationProps>
|
|||
({ messages, onStopClick, onResendClick, onEditClick, onCopyClick, isClicked }, ref: ForwardedRef<HTMLDivElement>) => {
|
||||
const [isScrolling, setIsScrolling] = useState(true);
|
||||
const messagesEndRef = useRef<HTMLDivElement | null>(null);
|
||||
const [chatHistory, setChatHistory, setSelectedIndex] = useChatHistory()
|
||||
const [chatHistory] = useChatHistory()
|
||||
|
||||
useEffect(() => {
|
||||
const observer = new IntersectionObserver(
|
||||
|
|
|
@ -10,6 +10,10 @@ const History: React.FC = () => {
|
|||
|
||||
const handleEditButtonClick = () => {
|
||||
setIsEditing(true);
|
||||
|
||||
/* Thank you Eslint for this masterpiece of a code snippet */
|
||||
setChatHistory(chatHistory)
|
||||
/* Wow i feel so secure now */
|
||||
};
|
||||
|
||||
const handleInputChange = (e: React.ChangeEvent<HTMLInputElement>) => {
|
||||
|
|
|
@ -40,10 +40,10 @@ export function importSettings(jsonData: string): void {
|
|||
}
|
||||
|
||||
export const sendToDatabase = async () => {
|
||||
let useName = localStorage.getItem("accountName")
|
||||
let usePassword = localStorage.getItem("accountPassword")
|
||||
const useName = localStorage.getItem("accountName")
|
||||
const usePassword = localStorage.getItem("accountPassword")
|
||||
if (useName && usePassword) {
|
||||
let result = await changeSettings(useName, usePassword, JSON.parse(exportSettings()))
|
||||
const result = await changeSettings(useName, usePassword, JSON.parse(exportSettings()))
|
||||
if (result == true) {
|
||||
alert('Data has been transferred')
|
||||
window.location.reload();
|
||||
|
|
|
@ -1,6 +1,6 @@
|
|||
#!/bin/bash
|
||||
|
||||
apt install npm nodejs python3-full ffmpeg libgtk-3-0 libnotify4 libgconf-2-4 libnss3 libxss1 libasound2 build-essential cmake -y
|
||||
apt install npm nodejs python3-full ffmpeg libgtk-3-0t64 libnotify4 libnss3 libxss1 libasound2 build-essential cmake -y
|
||||
if ! ollama; then
|
||||
curl -fsSL https://ollama.com/install.sh | sh
|
||||
fi
|
||||
|
|
Loading…
Reference in a new issue