Spaces:
Paused
Paused
Download update_ollama_models.sh from pvalue/open-webui: direct link, hf CLI and curl.
- Browser
- Download file 270 Bytes
-
https://huggingface.co/spaces/pvalue/open-webui/resolve/main/update_ollama_models.sh
- Command line
-
hf download hf://spaces/pvalue/open-webui/update_ollama_models.sh
-
curl -L -o update_ollama_models.sh https://huggingface.co/spaces/pvalue/open-webui/resolve/main/update_ollama_models.sh
270 Bytes
| # update_llm.sh | |
| # Retrieves the list of LLMs installed in the Docker container | |
| llm_list=$(docker exec ollama ollama list | tail -n +2 | awk '{print $1}') | |
| # Loop over each LLM to update it | |
| for llm in $llm_list; do | |
| docker exec ollama ollama pull $llm | |
| done | |