open-webui-o / update_ollama_models.sh
github-actions[bot]
GitHub deploy: 60e7e1d66da7f9d7c91fd38ab9673098dcf98e06
e17c2e1
raw
history blame
270 Bytes
#!/bin/bash
# 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