Skip to main content

prepend_system_prompt

Function prepend_system_prompt 

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

Prepends a system prompt and updates supported preserved provider bodies. It removes bodies it cannot edit so encoding rebuilds them from the updated request. Call it once per candidate on a request that has not already received a target prompt.