Skip to main content

build_fallback_prompt

Function build_fallback_prompt 

Source
pub fn build_fallback_prompt(sys: &str, user: &str) -> String
Expand description

Build a combined prompt string as a fallback for backends that expect a single prompt. If sys is empty, returns user as-is; otherwise formats as system+user sections.