#!/bin/bash
#ident "@(#)LocalFoodAI:manage_models.sh:Lange François:lanfr144@school.lu:Tue Jun 9 13:37:30 2026 +0200:Lange François:lanfr144@school.lu:Tue Jun 9 13:37:30 2026 +0200:b5b7ace535301dcfde4a69e582f63d69ac8b8d1f::%N"

echo "Pulling the new efficient billion-parameter model (llama3.2-vision:11b)..."
docker exec food-ollama-1 ollama pull llama3.2-vision:11b

echo "Cleaning up unused models to free up disk space..."
docker exec food-ollama-1 ollama rm qwen2.5:7b
docker exec food-ollama-1 ollama rm llama3.2:3b

echo "Currently installed models:"
docker exec food-ollama-1 ollama list

echo "Model management complete!"
