Problem
The system currently only supports public cloud LLM vendor APIs. It cannot connect to self‑hosted local large‑language model deployments (e.g. Ollama, vLLM) or relay‑station / third‑party API proxy endpoints. This prevents on‑premises, air‑gapped, private‑network and proxy‑routed LLM workloads from being integrated into the platform.
Solution
Extend the LLM connector layer to support two new model categories:
- Self‑deployed LocalLLMs: Compatible with OpenAI‑compatible API interfaces exposed by Ollama, vLLM and similar local inference services.
- Relay‑station / third‑party API proxies: Accept custom proxy gateway endpoints, pass through authentication headers and model routing parameters to upstream LLM backends.
Abstract the LLM client logic so that local self‑hosted services and proxy relay endpoints can be configured in the same UI/config entry as public cloud LLMs.
- Add a new model provider type option:
Local / Relay Proxy. - User inputs custom base endpoint URL (e.g.
http://localhost:11434/v1for Ollama, or proxy gateway address). - Optional configuration fields: API‑key (for proxies requiring auth), custom model name string, request timeout, custom HTTP headers.
- The underlying client sends OpenAI‑format request payload to the configured endpoint. Streaming and non‑streaming completions are both supported.
- Health‑check capability: test connection to target local/relay endpoint during configuration save to validate reachability.
- Model selection: users manually specify the actual backend model identifier instead of picking from a fixed pre‑defined list.
- Observability: trace logs retain the configured endpoint address for troubleshooting local/relay invocation failures.
Use Case
- Connect to self‑hosted Ollama running on internal on‑premises servers.
- Integrate vLLM high‑performance local inference deployments for private workloads.
- Route LLM traffic through internal API relay/proxy gateways for audit, rate‑limiting, token masking and traffic forwarding.
- Air‑gapped / offline environments without outbound internet access to public LLM cloud services.
- Multi‑tenant scenarios where LLM access is mediated via intermediate proxy service.
Priority
-
High - Blocking issue -
Medium - Important improvement -
Low - Nice to have
Additional Info
(Optional: screenshots, examples, links)