Lm-format-enforcer

Latest version: v0.10.11

Safety actively analyzes 724305 Python packages for vulnerabilities to keep your Python projects secure.

Scan your dependencies

Page 2 of 8

0.10.5

- SequenceParser performance optimization
- JsonSchemaParser: number parsing supports exponents
- Supporting tokenizers with multiple eos token ids

0.10.4

- Added default max Json array length to help LLMs avoid infinite loops. See README for details.
- Updated EXLlamaV2 example to updated API

0.10.3

- [113] TRTLLM Support: Fixing type incompatibility in certain cases / library versions

0.10.2

- [100] JsonSchemaParser: Added allOf support
- [99] JsonSchemaParser: Fixed edge case that would allow leading comma in JSON Array
- [102] JsonSchemaParser: Fixed Array of Enums not producing multiple values

0.10.1

- Allowing control of LM Format Enforcer's heuristics via env var / configuration objects. See the 'Configuration options' section of the README.

0.9.10

- [95] Added anyOf support to JsonSchemaParser, making function calls possible.

Page 2 of 8

© 2025 Safety CLI Cybersecurity Inc. All Rights Reserved.