From e522c0af2f53236e2c4690e027202b2ef86ff4a6 Mon Sep 17 00:00:00 2001 From: Patrick_Pluto Date: Tue, 8 Oct 2024 13:10:24 +0200 Subject: [PATCH 1/5] fixes --- deployment_scripts/windows/scripts/prepare_py.bat | 3 ++- py/requirements.txt | 4 ---- 2 files changed, 2 insertions(+), 5 deletions(-) diff --git a/deployment_scripts/windows/scripts/prepare_py.bat b/deployment_scripts/windows/scripts/prepare_py.bat index ab23e50..dd2d168 100644 --- a/deployment_scripts/windows/scripts/prepare_py.bat +++ b/deployment_scripts/windows/scripts/prepare_py.bat @@ -1,7 +1,7 @@ cd python-bin set PATH=%PATH%;"%CD%"; curl -O https://bootstrap.pypa.io/get-pip.py -ren python py +ren python.exe py.exe py get-pip.py cd Scripts set PATH=%PATH%;"%CD%"; @@ -9,4 +9,5 @@ cd .. cd .. cd py +py -m pip install setuptools py -m pip install -r requirements.txt \ No newline at end of file diff --git a/py/requirements.txt b/py/requirements.txt index 3a91239..ca6f1da 100644 --- a/py/requirements.txt +++ b/py/requirements.txt @@ -5,14 +5,10 @@ mistralai openai anthropic pyOpenSSL -SpeechRecognition -PocketSphinx -google-cloud-speech google-generativeai python-weather pycouchdb pyttsx3 -pip-licenses faster-whisper pydub ffmpeg \ No newline at end of file From a2d391cd60b1e91726263ddc9631c486d149a617 Mon Sep 17 00:00:00 2001 From: Patrick_Pluto Date: Tue, 8 Oct 2024 13:19:11 +0200 Subject: [PATCH 2/5] very cool changes --- .../windows/{prepare.bat => prepare_free.bat} | 2 +- .../windows/prepare_nonfree.bat | 3 +++ .../windows/scripts/prepare_ollama.bat | 19 ------------------- .../windows/scripts/prepare_ollama_free.bat | 10 ++++++++++ .../scripts/prepare_ollama_nonfree.bat | 10 ++++++++++ 5 files changed, 24 insertions(+), 20 deletions(-) rename deployment_scripts/windows/{prepare.bat => prepare_free.bat} (60%) create mode 100644 deployment_scripts/windows/prepare_nonfree.bat delete mode 100644 deployment_scripts/windows/scripts/prepare_ollama.bat create mode 100644 deployment_scripts/windows/scripts/prepare_ollama_free.bat create mode 100644 deployment_scripts/windows/scripts/prepare_ollama_nonfree.bat diff --git a/deployment_scripts/windows/prepare.bat b/deployment_scripts/windows/prepare_free.bat similarity index 60% rename from deployment_scripts/windows/prepare.bat rename to deployment_scripts/windows/prepare_free.bat index 163e99d..6a8c26d 100644 --- a/deployment_scripts/windows/prepare.bat +++ b/deployment_scripts/windows/prepare_free.bat @@ -1,3 +1,3 @@ start /b scripts\prepare_py.bat start /b scripts\prepare_npm.bat -start /b scripts\prepare_ollama.bat \ No newline at end of file +start /b scripts\prepare_ollama_free.bat \ No newline at end of file diff --git a/deployment_scripts/windows/prepare_nonfree.bat b/deployment_scripts/windows/prepare_nonfree.bat new file mode 100644 index 0000000..c30ce0b --- /dev/null +++ b/deployment_scripts/windows/prepare_nonfree.bat @@ -0,0 +1,3 @@ +start /b scripts\prepare_py.bat +start /b scripts\prepare_npm.bat +start /b scripts\prepare_ollama_nonfree.bat \ No newline at end of file diff --git a/deployment_scripts/windows/scripts/prepare_ollama.bat b/deployment_scripts/windows/scripts/prepare_ollama.bat deleted file mode 100644 index 6dafabf..0000000 --- a/deployment_scripts/windows/scripts/prepare_ollama.bat +++ /dev/null @@ -1,19 +0,0 @@ -cd ollama-bin -start /b ollama.exe serve -timeout 5 -ollama.exe pull phi3.5 -ollama.exe pull qwen2-math:1.5b -ollama.exe pull starcoder2 -ollama.exe pull llava-phi3 -ollama.exe pull qwen2.5-coder:1.5b -ollama.exe pull starcoder2:7b -ollama.exe pull wizard-math -ollama.exe pull llama3.1 -ollama.exe pull llama3.2 -ollama.exe pull dolphin-phi -ollama.exe pull dolphin-llama3 -ollama.exe pull dolphin-mistral -ollama.exe pull llava -ollama.exe pull qwen2.5 -ollama.exe pull mathstral -ollama.exe pull qwen2.5-coder \ No newline at end of file diff --git a/deployment_scripts/windows/scripts/prepare_ollama_free.bat b/deployment_scripts/windows/scripts/prepare_ollama_free.bat new file mode 100644 index 0000000..95597d6 --- /dev/null +++ b/deployment_scripts/windows/scripts/prepare_ollama_free.bat @@ -0,0 +1,10 @@ +cd ollama-bin +start /b ollama.exe serve +timeout 5 +ollama.exe pull qwen2-math:1.5b +ollama.exe pull qwen2.5-coder:1.5b +ollama.exe pull phi3.5 + +ollama.exe pull mathstral +ollama.exe pull qwen2.5-coder +ollama.exe pull qwen2.5 \ No newline at end of file diff --git a/deployment_scripts/windows/scripts/prepare_ollama_nonfree.bat b/deployment_scripts/windows/scripts/prepare_ollama_nonfree.bat new file mode 100644 index 0000000..bc88592 --- /dev/null +++ b/deployment_scripts/windows/scripts/prepare_ollama_nonfree.bat @@ -0,0 +1,10 @@ +cd ollama-bin +start /b ollama.exe serve +timeout 5 +ollama.exe pull qwen2-math:1.5b +ollama.exe pull starcoder2 +ollama.exe pull llama3.2 + +ollama.exe pull wizard-math +ollama.exe pull starcoder2:7b +ollama.exe pull llama3.1 \ No newline at end of file From 6031127f91b608621d3dfd425090863834d0742b Mon Sep 17 00:00:00 2001 From: sageTheDM Date: Tue, 8 Oct 2024 14:20:27 +0200 Subject: [PATCH 3/5] Model update --- app/components/Header.tsx | 21 ++++++++++---- app/components/Models.tsx | 56 +------------------------------------- app/styles/header.css | 2 ++ app/styles/models.css | 31 --------------------- public/img/character.jpg | Bin 130011 -> 0 bytes public/img/default.jpg | Bin 401256 -> 0 bytes public/img/financial.jpg | Bin 95160 -> 0 bytes public/img/image.jpg | Bin 188220 -> 0 bytes public/img/time.jpg | Bin 107903 -> 0 bytes 9 files changed, 19 insertions(+), 91 deletions(-) delete mode 100644 public/img/character.jpg delete mode 100644 public/img/default.jpg delete mode 100644 public/img/financial.jpg delete mode 100644 public/img/image.jpg delete mode 100644 public/img/time.jpg diff --git a/app/components/Header.tsx b/app/components/Header.tsx index 5a02425..700af3e 100644 --- a/app/components/Header.tsx +++ b/app/components/Header.tsx @@ -34,7 +34,6 @@ const Header: React.FC = ({ // Effect to handle clicks outside of the dropdown useEffect(() => { const handleClickOutside = (event: MouseEvent) => { - // Check if the click is outside both the dropdown and the hamburger menu if ( dropdownRef.current && !dropdownRef.current.contains(event.target as Node) && @@ -57,7 +56,19 @@ const Header: React.FC = ({
{showToggle && showHistoryModelsToggle && ( )}