message_from_body

Function message_from_body 

Source
pub fn message_from_body(body: &str) -> Option<String>
Expand description

2026-09-26: The trimmed error.message of an OpenAI-shaped error body. None when the body is not JSON with a non-empty string there, so callers can fall back to the status line.