ollama 5 curl

This commit is contained in:
lidia9 2025-05-09 16:44:36 +02:00
parent 19a6050326
commit 4919b6087d
1 changed files with 10 additions and 0 deletions

View File

@ -19,6 +19,16 @@
fi
done
# to be removed
- |
if [ "$BACKEND" = "ollama" ]; then
echo "Starting Ollama service..."
ollama serve &
sleep 10 # Give time for Ollama to start
curl http://localhost:8000/api/tags || echo "Ollama service may not be running properly"
fi
## to be removed
#- python3 benchmarks/cybermetric/CyberMetric_evaluator.py --model_name $MODEL_NAME --file_path $BENCHMARK_FILE
- echo $OLLAMA_API_BASE