Duplicated from DeathDaDev/Ollama-API
1efe400 140e3e1 87059f3
1
2
3
4
5
#!/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"