[FEATURE_REQUEST] Configurable completions path for Text Completion "Custom (OpenAI-compatible)" source
Have you searched for similar requests?
Yes
Is your feature request related to a problem? If so, please describe.
When using the Text Completion API with "Custom (OpenAI-compatible)" as the source, SillyTavern always appends /completions to the configured base URL to build the final request path (e.g. <base_url>/v1/completions).
This breaks when the backend is reached through a reverse proxy / AI gateway that only implements the modern /v1/chat/completions endpoint and does not support the legacy OpenAI /v1/completions endpoint. This is increasingly common with self-hosted AI gateways (e.g. Pangolin's AI Gateway), which explicitly document that self-hosted OpenAI-compatible backends like LM Studio, llama.cpp, and LocalAI should be routed through the Chat Completions capability only — the legacy Completions endpoint is not implemented at all on the gateway side.
As a result, even though the backend itself (e.g. LM Studio) fully supports /v1/completions, the request never reaches it, because it's rejected by the gateway with a generic "Cannot POST /v1/completions" 404 before it gets forwarded.
Describe the solution you'd like
Allow the completions path to be configured or overridden when using "Custom (OpenAI-compatible)" in Text Completion mode, similar to how the Chat Completion custom endpoint documentation suggests appending /v1 manually. For example:
- An option to specify a full custom path instead of always appending
/completions - Or documentation/UI hint clarifying that gateways without legacy Completions support are not compatible with Text Completion mode, so users can diagnose this faster
Describe alternatives you've considered
Using Chat Completion mode instead — but this surfaces a separate issue with some models (strict Jinja chat templates rejecting multiple system-role messages, e.g. #5276), which does not occur in Text Completion mode.
Additional context
- SillyTavern version: 1.19.0
- Backend: LM Studio, accessed through a Pangolin AI Gateway (self-hosted reverse proxy)
- API: Text Completion → Custom (OpenAI-compatible)
Priority
Medium (Would be very useful)
Are you willing to test this on staging/unstable branch if this is implemented?
Yes
Source: SillyTavern/SillyTavern