Skip to content

Commit 9143636

Browse files
VAP15-97 docs: custom LLM URL must resolve to a public IP (#1418)
## Description - Doc update for https://linear.app/vapi/issue/VAPSEC-566/server-side-request-forgery-through-the-assistant-model-url - Add a Note to the custom LLM guide: the Custom LLM URL must use HTTPS and resolve to a public IP (including redirects); localhost, private and link-local addresses are refused. Use a tunnel such as ngrok for local development. - Add `pipeline-error-custom-llm-llm-failed` with the "Custom LLM URL blocked" log line to the call ended reasons page under Additional model errors. Linear: VAP15-97. Changelog entry follows when US rollout reaches 100%. ## Testing Steps - [ ] Run the app locally using `fern docs dev` or navigate to preview deployment - [ ] Ensure that the changed pages and code snippets work 🤖 Generated with [Claude Code](https://claude.com/claude-code)
1 parent 028d6b5 commit 9143636

2 files changed

Lines changed: 3 additions & 0 deletions

File tree

‎fern/calls/call-ended-reason.mdx‎

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -127,6 +127,7 @@ Additional model errors:
127127

128128
- `pipeline-no-available-llm-model` / `call.in-progress.error-pipeline-no-available-llm-model` — No suitable LLM model was available. Check your model configuration.
129129
- `call.in-progress.error-pipeline-ws-model-connection-failed` — Failed to connect to a custom LLM WebSocket endpoint.
130+
- `pipeline-error-custom-llm-llm-failed` with a call log entry that starts with `Custom LLM URL blocked:` — The Custom LLM URL was refused before the request was sent, and the rest of the entry names the reason. For the URL requirements, see [Bring your own server](/customization/custom-llm/using-your-server). A configured fallback model is tried first.
130131

131132
## Pipeline errors: voice (TTS)
132133

‎fern/customization/custom-llm/using-your-server.mdx‎

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -61,6 +61,8 @@ On the **Assistant** tab, select **MODEL**. In **Model Settings**, open **Model*
6161
**3. Enter Ngrok URL:**
6262
Enter `gpt-4.1-mini` in the second **Model** field. Paste the public base URL for your OpenAI-compatible endpoint into **Custom LLM URL** (for example, the URL generated by Ngrok for your server). The server handles requests at `/chat/completions`.
6363

64+
The URL must use `https://` and resolve to a public IP address, and so must every URL it redirects to. Localhost, private network, and link-local addresses are refused, as is a URL that includes credentials, a query string, or a fragment.
65+
6466
<Note>
6567
Set the custom LLM URL on a stored assistant, as in this step. A web call or chat authenticated with a public API key or a public JWT that supplies `model.url` is rejected with a `403` response. For more information, including how to set the URL per request from your server, see [Model URLs on public-key requests](/assistants/concepts/transient-vs-permanent-configurations#model-urls-on-public-key-requests).
6668
</Note>

0 commit comments

Comments
 (0)