Mistral AI
Mistral AI is a cutting-edge platform focused on developing advanced large language models that prioritize efficiency and performance. Known for producing compact yet powerful AI models, Mistral AI aims to democratize access to high-performance AI by making these models more accessible and adaptable to various applications. The platform emphasizes open innovation, contributing to the AI community with tools that are both versatile and state-of-the-art.
Setup
- Install Langtrace’s SDK and initialize the SDK in your code.
Note: You’ll need API keys from Langtrace and MistralAI. Sign up for Langtrace and/or MistralAI if you haven’t done so already.
# Install the SDK
pip install -U langtrace-python-sdk mistralai
- Setup environment variables:
export LANGTRACE_API_KEY=YOUR_LANGTRACE_API_KEY
export MISTRAL_API_KEY=YOUR_MISTRAL_API_KEY
Usage
Generate a simple output with your deployment’s model:
You can now view your traces on the Langtrace dashboard:
Want to see more supported methods? Checkout the sample code in the Langtrace Mistral Python Example repository.