curl http://localhost:33899/api/generate -d '{ "model": "gemma2:2b", "prompt": "Why is the sky blue?", "stream": false }'
#version: '3'
services:
ollama-webui:
image: ghcr.io/open-webui/open-webui:main
container_name: ollama-webui
restart: unless-stopped
ports:
- 8090:8080
volumes:
- ./data:/app/backend/data
environment:
- OLLAMA_API_BASE_URL=http://36.133.28.230:33899/api
- WEBUI_SECRET_KEY=TkjGEiQ@5K^j
curl http://localhost:11434/api/generate -d "{\"model\": \"qwen2\",\"prompt\": \"who are you?\",\"stream\":false}"
curl http://36.133.28.230:33899/api/generate -d "{\"model\": \"gemma2\",\"prompt\":\"hello ?\",\"stream\":false}"
curl http://36.133.28.230:33899/api/chat -d "{ \"model":\"gemma2", \"messages\": [{\"role\":\"user\",\"content\":\"why is the sky blue?\"}]}"
curl http://0.0.0.0:8080/v1/chat/completions \
-H "Content-Type: application/json" \
-H "Authorization: Bearer soulteary" \
-d '{
"model": "gpt-4",
"messages": [{"role": "user", "content": "Hello."}],
"temperature": 0.2,
"stream": true
}'