v6.2.0
potpie-ai/potpiev6.2.0Nov 7, 2025by tanchongmin
AI Summary
Enhances YAML parsing robustness for Pydantic v2.12.4 and adds image parsing decorators for OpenAI-compatible providers.
Key Highlights
- Robust parse_yaml with regex support for special characters and Union types
- Added image_parser and image_parser_async decorators
- Better validation for list[] and dict[] formats
New Features
- Robust parse_yaml for Pydantic v2.12.4
- Image parsing decorators for OpenAI-compatible providers
Full Release Notes
Added support for parse_yaml for pydantic v2.12.4 Made parse_yaml more robust using regex to solve keys with special characters and lines with double colons Better catching of non-working format for list[] and dict[]. list[] must now contain only one datatype, and dict[] must contain exactly two datatypes Allows | for datatyping: int | str -> Union[int, str], int | None -> Optional[int] Created image_parser and image_parser_async decorators to parse images for model providers capable of using OpenAI API interface (such as OpenRouter)