Generic (OpenAI-compatible)
Use this backend for any provider exposing an OpenAI-compatible Chat Completions API.
Requirements
Provider base URL.
Model identifier.
Optional API key/headers depending on provider.
Setup
Get provider URL and model name.
Configure fields in AI Backend settings tab.
Validate with Test connection.
Configuration
Preferred Backend
openai-compatible
Base URL
provider URL
Model
provider model id
API Key (Bearer)
optional
Extra Headers
optional (Header: value)
Timeout (seconds)
120 by default (accepted range: 30-3600)
URL Behavior
Final endpoint resolution:
Base URL ends with
/vN-> append/chat/completions.Base URL already ends with
/chat/completions-> use as-is.Otherwise -> append
/v1/chat/completions.
Examples:
Headers example:
Output Token Limits
The extension sets max_tokens per request type to bound output and reduce avoidable truncation:
Request Type
max_tokens
Chat
4096
Scanner (single request)
2048
Scanner (batch analysis)
4096
Payload generation
1024
Troubleshooting
Retry Behavior
If a request throws a classified transient transport exception, the extension makes up to 6 total attempts with five possible delays (500/1000/1500/2000/3000 ms). The connection's circuit breaker opens after 5 recorded transient failures and allows one half-open model request after 30 seconds. HTTP error responses are not retried inside the same call, although 429/5xx responses count toward the breaker. Each actual retry is logged in the AI Request Logger. See Backends Overview → Retry Behavior.
Related Pages
Last updated
