Skip to content

v0.19.0

Compare
Choose a tag to compare
@jackmpcollins jackmpcollins released this 15 Apr 06:41
· 103 commits to main since this release

What's Changed

Full Changelog: v0.18.1...v0.19.0


🎉 Native support for Anthropic using AnthropicChatModel 🎉

from magentic import prompt
from magentic.chat_model.anthropic_chat_model import AnthropicChatModel


@prompt(
    "Name three fruits. Be sure to return this in correct JSON format matching the schema.",
    model=AnthropicChatModel("claude-3-opus-20240229")
)
def say_fruit() -> list[str]: ...

say_fruit()