UNPKG

convokit

Version:

A flexible TypeScript framework for ingesting, processing, and exporting chat/conversation data for LLM training and analysis.

17 lines 578 B
import { PluginRegistry } from '../../index.js'; import { convertToChatML } from '../../ck/internal_plugins/converters/CKToChatML.js'; export class ChatMLConverter { PluginInfo = { id: 'chatml', name: 'ChatML Converter', description: 'Converts CKTurnListConversations to ChatML JSONL', version: '1.0.0', type: 'converter' }; apply(convs, systemPrompt) { return convertToChatML(convs, systemPrompt); } } // Self-register PluginRegistry.registerConverter(ChatMLConverter); //# sourceMappingURL=ChatMLConverter.js.map