ollama-open-webui/update_ollama_models.sh

11 lines
270 B
Bash
Raw Normal View History

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