Ollama-API / run_ollama.sh
DeathDaDev's picture
Update run_ollama.sh
140e3e1 verified
raw
history blame contribute delete
154 Bytes
#!/bin/bash
# Start Ollama and capture its output
export OLLAMA_URL=$(ollama start 2>&1 | grep -oP 'http://localhost:\d+')
echo "Ollama URL: $OLLAMA_URL"