update_llm.sh 270 Bytes
Newer Older
1
2
3
#!/bin/bash
# update_llm.sh

4
# Retrieves the list of LLMs installed in the Docker container
5
6
llm_list=$(docker exec ollama ollama list | tail -n +2 | awk '{print $1}')

7
# Loop over each LLM to update it
8
9
10
for llm in $llm_list; do
  docker exec ollama ollama pull $llm
done