Setup
To use Mistral models, configure your Mistral API key in Braintrust.- Get a Mistral API key from Mistral AI Console
- Add the Mistral API key to your organization’s AI providers or to a project’s AI providers
- Set the Mistral API key and your Braintrust API key as environment variables
.env
API keys are encrypted at rest using transparent data encryption with a unique 256-bit key and nonce.
Use Mistral with Braintrust AI proxy
The Braintrust AI Proxy allows you to access Mistral models through a unified OpenAI-compatible interface. First, install thebraintrust and openai packages.
Trace logs with Mistral
Trace your Mistral LLM calls for observability and monitoring. When using the Braintrust AI Proxy, API calls are automatically logged to the specified project.Evaluate with Mistral
Evaluations distill the non-deterministic outputs of Mistral models into an effective feedback loop that enables you to ship more reliable, higher quality products. BraintrustEval is a simple function composed of a dataset of user inputs, a task, and a set of scorers. To learn more about evaluations, see the Experiments guide.