fix: update Makefile and rename script for open-webui integration

This commit is contained in:
Patrice-Gaudicheau
2024-02-24 07:51:27 +01:00
parent 7d0d504390
commit a016171573
2 changed files with 3 additions and 2 deletions

10
update_ollama_models.sh Normal file
View File

@@ -0,0 +1,10 @@
#!/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