Skip to main content

Offline JSON schema validation & auto-repair for local LLMs

Project description

llm-schema-lock

Оффлайн-валидация JSON для локальных LLM. Автоматически чинит битый JSON.

Установка

pip install llm-schema-lock

Пример использования:
from llm_schema_lock import validate_and_fix

schema = {"type": "object", "properties": {"answer": {"type": "string"}}, "required": ["answer"]}

result = validate_and_fix('{"answer": "OK"}', schema)
print(result)

Купить Pro-лицензию:
Цена: 1 990 ₽/мес или 14 900  навсегда
Инструкция по покупке:
1.Получи свой ID компьютера командой: python -c "from llm_schema_lock._license import check_license; print(check_license()['machine_id'])"
2.Переведи деньги по СБП на номер: +7-952-635-10-55 (ВТБ)
3 комментарии к переводу напиши: lic:ТВОЙ_ID
4.Отправь скриншот чека в Telegram: @iLL1cc
5 течение 15 минут получишь файл license.dat

Лицензия:
MIT. Коммерческое использование требует Pro-ключа.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distributions

No source distribution files available for this release.See tutorial on generating distribution archives.

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

llm_schema_lock-0.1.2-py3-none-any.whl (6.2 kB view details)

Uploaded Python 3

File details

Details for the file llm_schema_lock-0.1.2-py3-none-any.whl.

File metadata

File hashes

Hashes for llm_schema_lock-0.1.2-py3-none-any.whl
Algorithm Hash digest
SHA256 a4419b76e6c6c91c2eec641532341b3d4ad926b1a8e6b3d51cd120c30c98a4ee
MD5 6ca6094be6841b26dd92db05ba16ccd3
BLAKE2b-256 6dfe6345f2f838d8f5004ce3642ac0cce9abcc215179dd6b51c096f9f6a8b22f

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page