Local model providers
| Preset | Default | Notes |
|---|---|---|
| Ollama | localhost:11434/v1 | Installed model identifiers. Native management APIs excluded. |
| LM Studio | localhost:1234/v1 | Models and streaming chat |
| vLLM | localhost:8000/v1 | Optional server API key |
| llama.cpp, generic endpoint | Configured address | Resolved offline |
All go through the Chat Completions transport cloud providers use: streaming, tool calls, cancellation, retries and structured output. The user starts the server; OpenProgram does not install models, allocate GPUs or start inference servers.
Contract
| Aspect | Rule |
|---|---|
| Address | Host-only URLs resolve to /v1 the same way for discovery, validation and inference. Edits apply to later calls, including saved models. |
| Discovery | From the configured server, never a cloud catalogue |
| Credentials | Optional. Never inherits an unrelated OpenAI key. Sent only to the configured endpoint. |
| URL security | Existing configured-URL checks apply |
| Enablement | Persisted through the existing provider and model registry |
| Settings | Address, optional accounts, connectivity, discovery, manual model IDs and limits |
| Errors | Invalid URLs, missing servers, HTTP failures and non-JSON replies are reported as actionable failures |
| Compatibility | Conservative OpenAI compatibility settings |
Request authentication
Without a key: an explicit SDK placeholder prevents environment fallback, and each Chat Completions request omits the Authorization header. The omission must be per request, because the SDK authentication validator ignores removal of a default header alone. With a key: the configured server key. Cloud requests still need their own credential.
Implementation status
Inference against a real locally deployed model has not been exercised end to end; it needs an operator-provided server.
Last updated · 2026-11-25