open-webui/update_ollama_models.sh

11 lines
270 B
Bash
Raw Permalink Normal View History

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