Skip to main content

sanitize_response

Function sanitize_response 

Source
pub fn sanitize_response(response: &str) -> String
Expand description

Sanitize an AI response: strip ANSI codes, preamble, code blocks, formatting.