Fix language: binary data is replaced with placeholders, not truncated

This commit is contained in:
Paul Kompfner
2026-04-11 14:39:25 -04:00
parent 1a02b5d61a
commit e38647151d
2 changed files with 5 additions and 5 deletions

View File

@@ -1 +1 @@
- Added `truncate_large_values` parameter to `LLMContext.get_messages()`. When `True`, returns compact deep copies of messages with binary data (base64 images, audio) fully truncated and long string values in LLM-specific messages recursively truncated. Useful for serialization, logging, and debugging tools.
- Added `truncate_large_values` parameter to `LLMContext.get_messages()`. When `True`, returns compact deep copies of messages with binary data (base64 images, audio) replaced by short placeholders and long string values in LLM-specific messages recursively truncated. Useful for serialization, logging, and debugging tools.