Custom OpenAI-compatible provider
| Configured | Resolved |
|---|---|
https://host | https://host/v1 |
https://host/ | https://host/v1 |
https://host/v1 | https://host/v1 |
https://host/compatible-mode/v1 | unchanged |
_resolve_base_url in providers/settings/storage.py. The stored value stays as typed, so old rows resolve at read time with no migration. Built-in providers keep their own rules. The provider type sets the protocol; model names do not.
| Step | Request |
|---|---|
| Validate and list | GET {base}/models; a success must be JSON |
| Model rows, fetched or manual | api=openai-completions, resolved Base URL |
| Inference | POST {base}/chat/completions |
Kept distinct: authentication rejection, balance errors, rate limits, transport failures, non-JSON success pages, malformed envelopes, empty lists. Error text never includes API keys or response bodies.
Last updated · 2026-11-25