llm-json-fix
Version:
Fix malformed JSON outputs from Large Language Models (LLMs)
14 lines (13 loc) • 445 B
JavaScript
/**
* LLM JSON Fix - A library for fixing malformed JSON outputs from LLMs
*
* @packageDocumentation
*/
import { fixLLMJson } from './regular/jsonFix';
import { LLMJSONFixError, UnrepairableJSONError, AmbiguousRepairError, BufferLimitExceededError } from './utils/errors';
// Export the main API
export {
// Main function
fixLLMJson,
// Error types
LLMJSONFixError, UnrepairableJSONError, AmbiguousRepairError, BufferLimitExceededError };