What's Changed
* Improve function calling docs by jackmpcollins in https://github.com/jackmpcollins/magentic/pull/186
* Add vision example: renaming screenshots by jackmpcollins in https://github.com/jackmpcollins/magentic/pull/187
* Improve RAG example notebook using GitHub search by jackmpcollins in https://github.com/jackmpcollins/magentic/pull/188
* Add Mistral backend by jackmpcollins in https://github.com/jackmpcollins/magentic/pull/189
**Full Changelog**: https://github.com/jackmpcollins/magentic/compare/v0.20.1...v0.21.0
---
Mistral API now supported natively 🚀
with full support for `StreamedStr`, `ParallelFunctionCall`, etc. Example:
python
from magentic import prompt
from magentic.chat_model.mistral_chat_model import MistralChatModel
from pydantic import BaseModel
class Superhero(BaseModel):
name: str
age: int
power: str
enemies: list[str]
prompt(
"""Create a Superhero named {name}""",
model=MistralChatModel("mistral-large-latest"),
)
def create_superhero(name: str) -> Superhero: ...
create_superhero("Garden Man")
Superhero(name='Garden Man', age=35, power='Plant control', enemies=['Smog', 'Deforestator'])