Skip to main content

explain_refusal

Function explain_refusal 

Source
pub fn explain_refusal(message: &str, faces: &[String]) -> FaceTransformRefusal
Expand description

Explain a Transform Face refusal.

message is the kernel’s text for the feature WITHOUT the "<id>: " prefix (what feature_error_message already returns); faces is the feature’s params.faces, which is where the selected face’s name comes from — the kernel message does not carry it.