pub fn parse_models(body: &[u8]) -> Vec<String>Expand description
Parse an OpenAI-compatible /v1/models response body into the list of model
ids. The expected shape is { "data": [ { "id": "…" }, … ] }. A missing,
empty or non-array data, or a body that is not JSON at all, yields an empty
list: discovery degrades silently and never counts as a failover-class
failure, so a provider without the endpoint must not mark itself unhealthy.