update_ollama_models.sh 270 B

12345678910
  1. #!/bin/bash
  2. # update_llm.sh
  3. # Retrieves the list of LLMs installed in the Docker container
  4. llm_list=$(docker exec ollama ollama list | tail -n +2 | awk '{print $1}')
  5. # Loop over each LLM to update it
  6. for llm in $llm_list; do
  7. docker exec ollama ollama pull $llm
  8. done