Configure and run MistralAI for evals
Need to install extra dependency mistralai
mistralai
class MistralAIModel(BaseModel): model: str = "mistral-large-latest" temperature: float = 0 top_p: Optional[float] = None random_seed: Optional[int] = None response_format: Optional[Dict[str, str]] = None safe_mode: bool = False safe_prompt: bool = False
# model = Instantiate your MistralAIModel here model("Hello there, how are you?") # Output: "As an artificial intelligence, I don't have feelings, # but I'm here and ready to assist you. How can I help you today?"
Last updated 14 days ago
Was this helpful?