Full Changelog: 0.1.2...0.1.3
Changelog
All notable changes to this project will be documented in this file.
v0.1.3 (2025-12-22)
Added
SYSTEM_GUARDRAILto enforce strict rules for handling untrusted data in LLM prompts.- Support for flexible input types (
dict,DataFrame,str) ingenerate_wrapped. - JSON serialization of input data to prevent prompt injection.
- Explicit data delimiters (
<DATA></DATA>) in prompts for safety. - Optional user-provided
model_api_url,model_api_key, andmodel_name.
Changed
generate_wrappedfunction now normalizes inputs and applies system guardrails automatically.Model.call_modelupdated to passSYSTEM_GUARDRAILfor both OpenAI (systemrole) and Anthropic (systemtop-level field).- Anthropic response parsing updated for
messagesarray format. - OpenAI and Anthropic defaults unified and made explicit for safety.
Fixed
- Prevented prompt injection vulnerabilities by:
- Serializing user data
- Enforcing system-level guardrails
- Ignoring instructions inside input data
Docs
- Updated How it Works section to clarify system token handling.
- Added clear guidelines for structured data input and expected output style.