ian
12/05/2025, 3:09 PMVapi Support Bot
12/05/2025, 3:10 PM/chat/completions to the custom LLM URL you provide, as shown in the official documentation's Flask example:
python
@app.route("/chat/completions", methods=["POST"])
def chat_completions():
# Handle request
At this time, there is no documented way to prevent this URL modification—Vapi expects your server to handle requests at the /chat/completions path.
For more details, see the [Vapi Custom LLM integration guide](https://docs.vapi.ai/customization/custom-llm/using-your-server).
Source:
- [Vapi Custom LLM: Using Your Server](https://docs.vapi.ai/customization/custom-llm/using-your-server)ian
12/05/2025, 3:11 PMian
12/05/2025, 3:13 PMChiranjeet Mishra
12/09/2025, 2:37 AM/chat/completions to the custom LLM URL you provide. To accommodate this design, ensure that your server is set up to handle requests at the /chat/completions endpoint. This behavior is outlined in the [Vapi Custom LLM integration guide](https://docs.vapi.ai/customization/custom-llm/using-your-server).
If you need to include additional parameters in your URL, consider handling these parameters in your server logic. Unfortunately, as it currently stands, Vapi does not support bypassing this URL modification. Setting up a proxy endpoint to reroute requests could be a workaround if your server requires a specific URL structure.