Merge branch 'master' into resize-mobile-ui

This commit is contained in:
Timothy Carambat 2024-08-09 17:19:18 -07:00 committed by GitHub
commit b7222ec692
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
4 changed files with 15 additions and 11 deletions

View File

@ -9,8 +9,10 @@ sudo systemctl enable docker
sudo systemctl start docker
mkdir -p /home/anythingllm
touch /home/anythingllm/.env
cat <<EOF >/home/anythingllm/.env
${env_content}
EOF
sudo docker pull mintplexlabs/anythingllm
sudo docker run -d -p 3001:3001 --cap-add SYS_ADMIN -v /home/anythingllm:/app/server/storage -v /home/anythingllm/.env:/app/server/.env -e STORAGE_DIR="/app/server/storage" mintplexlabs/anythingllm
echo "Container ID: $(sudo docker ps --latest --quiet)"

View File

@ -105,7 +105,7 @@ export default function SpeechToText({ sendCommand }) {
<Microphone
weight="fill"
className={`w-6 h-6 pointer-events-none text-white overflow-hidden rounded-full ${
listening ? "animate-pulse" : ""
listening ? "animate-pulse-glow" : ""
}`}
/>
<Tooltip

View File

@ -87,7 +87,7 @@ export default {
},
animation: {
sweep: "sweep 0.5s ease-in-out",
pulse: "pulse 1.5s infinite"
"pulse-glow": "pulse-glow 1.5s infinite"
},
keyframes: {
sweep: {
@ -102,7 +102,7 @@ export default {
"0%": { opacity: 1 },
"100%": { opacity: 0 }
},
pulse: {
"pulse-glow": {
"0%": {
opacity: 1,
transform: "scale(1)",

View File

@ -17,12 +17,14 @@ class GeminiLLM {
this.gemini = genAI.getGenerativeModel(
{ model: this.model },
{
// Gemini-1.5-pro and Gemini-1.5-flash are only available on the v1beta API.
apiVersion:
this.model === "gemini-1.5-pro-latest" ||
this.model === "gemini-1.5-flash-latest"
? "v1beta"
: "v1",
// Gemini-1.5-pro-* and Gemini-1.5-flash are only available on the v1beta API.
apiVersion: [
"gemini-1.5-pro-latest",
"gemini-1.5-flash-latest",
"gemini-1.5-pro-exp-0801",
].includes(this.model)
? "v1beta"
: "v1",
}
);
this.limits = {