v0.19.0
What's Changed
- Publish docs on release or manually by @jackmpcollins in #162
- Bump pytest-cov from 4.1.0 to 5.0.0 by @dependabot in #165
- Add Structured Output docs by @jackmpcollins in #167
- Remove unneeded wrapper functions for openai and litellm completion by @jackmpcollins in #171
- Add AnthropicChatModel by @jackmpcollins in #174
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()