Skip to main content

prepend_system_prompt

Function prepend_system_prompt 

Source
pub fn prepend_system_prompt(request: &mut LlmRequest, prompt: &str)
Expand description

This function prepends a system prompt and updates supported preserved provider bodies. It removes bodies it cannot edit so encoding rebuilds them from the updated request.