open-webui/update_ollama_models.sh

11 lines
270 B
Bash
Raw Permalink Normal View History

2024-02-22 21:00:59 +00:00
#!/bin/bash
# update_llm.sh
2024-02-23 14:52:55 +00:00
# Retrieves the list of LLMs installed in the Docker container
2024-02-22 21:00:59 +00:00
llm_list=$(docker exec ollama ollama list | tail -n +2 | awk '{print $1}')
2024-02-23 14:52:55 +00:00
# Loop over each LLM to update it
2024-02-22 21:00:59 +00:00
for llm in $llm_list; do
docker exec ollama ollama pull $llm
done