Skip to main content
Version: 0.11.x

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​

ChatPreprocessorConfig

Preprocessor configuration including template and preprocessor settings.

Returns​

ChatPreprocessor

A ChatPreprocessor object containing process, render, buildPrompt, clear, and dispose methods.

We are Software Mansion.