Skip to content

Conversation

@taylorn-ai
Copy link

This pull request introduces several improvements to the Prompty runtime and documentation, focusing on enhanced configurability for markdown image parsing, improved input validation, and expanded test coverage. The most significant changes are the addition of a new configuration option to disable automatic image parsing in prompts, updates to the documentation to reflect this feature, and the introduction of comprehensive tests to ensure correct parser behavior.

Image Parsing Configuration

  • Added support for disabling markdown image parsing via the disable_image_parsing option in the TemplateProperty.options dictionary. When enabled, the parser returns content as-is without processing images. (runtime/prompty/prompty/parsers.py, runtime/prompty/prompty/core.py) [1] [2]
  • Updated the documentation (README.md) to describe the new disable_image_parsing option, including usage examples and scenarios where it is beneficial. (runtime/prompty/README.md)

Testing and Validation

  • Added new tests to verify parser behavior with and without image parsing enabled, including cases for plain text, markdown images, and the effect of the configuration option. (runtime/prompty/tests/test_parser.py)
  • Improved input validation logic to correctly handle required and optional inputs, raising errors for missing required properties and skipping optional ones without defaults. (runtime/prompty/prompty/__init__.py)

Documentation and Usability

  • Expanded and clarified documentation in README.md to cover configuration options, CLI usage, available invokers, tracing, and contribution guidelines. (runtime/prompty/README.md) [1] [2] [3] [4] [5] [6]

Taylor and others added 4 commits September 4, 2025 16:44
- ✨ Add missing 'strict' and 'options' fields to TemplateProperty for better template configuration
- 🔧 Implement logic to disable image parsing based on template options in PromptyChatParser
- ✅ Add tests to verify image parsing behaviour when disabled and enabled
- 🐛 Add handling for optional inputs without defaults
- 🔍 Raise error for missing required input properties
- 📜 Refactor code for clarity and maintainability
@taylorn-ai
Copy link
Author

@sethjuarez - please review.

@taylorn-ai
Copy link
Author

@sethjuarez - is this project still being maintained? If not, then I will have to remove it from my applications. There hasn't been much activity lately...

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant