Devstral is an agentic LLM for software engineering, developed by Mistral AI and All Hands AI. It’s designed to explore codebases, edit multiple files, and support engineering agents.
import os
from openai import OpenAI
client = OpenAI( base_url="https://api.clarifai.com/v2/ext/openai/v1", api_key=os.environ["CLARIFAI_PAT"],)response = client.chat.completions.create( model="https://clarifai.com/mistralai/completion/models/Devstral-Small-2505-unsloth-bnb-4bit", messages=[{"role":"developer","content":"Talk like a pirate."},{"role":"user","content":"How do I check if a Python object is an instance of a class?",},], temperature=0.7, stream=False,# stream=True also works, just iterator over the response)print(response)