Skip to content

v2.7.1

Choose a tag to compare

@Eigenwise Eigenwise released this 14 Feb 12:52
· 84 commits to main since this release

Bug Fixes

  • fix(chat_history): Support nested multimodal content in get_history() (#208, #141)
    • ChatHistory.get_history() now correctly handles multimodal objects (Image, PDF, Audio) nested inside sub-schemas, not just at the top level
    • Replaced json.dumps() with Pydantic-native model_dump_json(exclude=...) to fix TypeError when schemas contain both multimodal fields and nested Pydantic models
    • Added recursive _extract_multimodal_info() that walks the full object tree to find multimodal content at any depth
    • Handles lists, tuples, dicts, and deeply nested Pydantic models
    • All-multimodal containers (list/dict) are fully excluded from the JSON output

New Examples

  • nested-multimodal: End-to-end example demonstrating nested multimodal schemas with actual LLM calls

Full Changelog

v2.7.0...v2.7.1