Function: createChatPreprocessor()
createChatPreprocessor(
config):ChatPreprocessor
Defined in: extensions/llm/utils/chatPreprocessor.ts:310
Handles Jinja template formatting and media tensor preprocessing for chat turns.
Parameters
config
Preprocessor configuration including template and preprocessor settings.
Returns
A ChatPreprocessor object containing process, render, buildPrompt, clear, and dispose methods.