Route requests through a gateway
Send chat requests and the model catalog through your own endpoint — a proxy, an auditing gateway, or a self-hosted relay. You need this when your network requires a middle hop.
Prerequisites
Section titled “Prerequisites”- The
pi-mistral-nativepackage installed - A gateway that proxies Mistral’s chat-completions and models endpoints
-
Set the base URL. Pick one method:
/mistral set endpoint.baseUrl https://gateway.example.com/mistral/v1Add this to your user config file:
{ "endpoint": { "baseUrl": "https://gateway.example.com/mistral/v1" } } -
Verify the endpoint:
/mistralThe status card shows
Effective chat endpoint:with your URL. -
Confirm the gateway answers:
/mistral testThe probe hits the same endpoint the chat stream posts to — a
$VARor!commandbase URL is honored here too.
The value supports the config-value protocol ($VAR, ${VAR}, !command) — see Keep secrets out of the config file.