Open WebUI Integration
l3mcore is fully compatible with Open WebUI, the most popular web interface for self-hosted AI models.
Configuration
Option A: Ollama type connection (Recommended)
- Open Open WebUI and go to Settings → Connections
- In the Ollama API section:
- Base URL:
http://your-lemoe-ip:11435
- Base URL:
- Click on Save and reload the page. In the model selector you will see all your experts.
Option B: OpenAI type connection
- Open Open WebUI and go to Settings → Connections
- In the OpenAI API section:
- Base URL:
http://your-lemoe-ip:11435/v1 - API Key: any value (l3mcore ignores it)
- Base URL:
- Click on Save and reload the page.
Routing behavior
| Configuration in Open WebUI | Behavior in l3mcore |
|---|---|
Model: l3mcore Default (or any generic name) | The ML router automatically chooses the best expert |
Model: programador (exact label) | Goes straight to the programador expert, bypassing the router |
Model: escritor_creativo | Goes straight to the escritor_creativo expert |
Use automatic routing
To get the most out of l3mcore, select a generic model and let the router choose. You will see in the logs how it decides in real time.
Example log with Open WebUI
[API] POST /v1/chat/completions from 192.168.1.50
[API] model=gpt-4, messages=1, stream=true
[Router] Prompt: "Can you write me a poem about the sea?"
[Router] label='escritor_creativo' score=0.89 (embedding match)
[ExpertDispatcher] → api (anthropic/claude-3-5-sonnet)
[Stream] Sending tokens to client...
Troubleshooting
No models appear in Open WebUI:
- Verify that l3mcore is running:
curl http://your-ip:11435/api/version - Check that the Base URL is correct (without
/v1for Ollama, or with/v1for OpenAI).
Connection error:
- Make sure the firewall allows port 11435
- In Docker, use the host IP, not
localhost