mirror of
https://github.com/Mintplex-Labs/anything-llm.git
synced 2024-11-19 04:30:10 +01:00
Merge branch 'master' into resize-mobile-ui
This commit is contained in:
commit
b7222ec692
@ -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)"
|
||||
|
@ -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
|
||||
|
@ -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)",
|
||||
|
@ -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 = {
|
||||
|
Loading…
Reference in New Issue
Block a user