Skip to main content

How it works

Mistral uses proxy mode. The Mistral API is OpenAI-compatible, so the Cognisafe SDK rewrites the Mistral client’s base URL to point to the proxy. Requests flow through the proxy to https://api.mistral.ai and are logged asynchronously.

Installation

Setup

Supported models

All Mistral models are supported. The proxy forwards to https://api.mistral.ai by default. To change the upstream, set the UPSTREAM_URL environment variable on the proxy service.

Proxy configuration

Set UPSTREAM_URL on the Cognisafe proxy to point at Mistral’s API:
If you run multiple proxy instances for different providers, deploy separate proxy containers with different UPSTREAM_URL values.