Skip to content

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.

  • The pi-mistral-native package installed
  • A gateway that proxies Mistral’s chat-completions and models endpoints
  1. Set the base URL. Pick one method:

    /mistral set endpoint.baseUrl https://gateway.example.com/mistral/v1
  2. Verify the endpoint:

    /mistral

    The status card shows Effective chat endpoint: with your URL.

  3. Confirm the gateway answers:

    /mistral test

    The probe hits the same endpoint the chat stream posts to — a $VAR or !command base URL is honored here too.

The value supports the config-value protocol ($VAR, ${VAR}, !command) — see Keep secrets out of the config file.

See Region routing · Configuration keys