Skip to main content

discovered_ids

Function discovered_ids 

Source
pub fn discovered_ids(body: &Value) -> Vec<String>
Expand description

Extract model ids from an OpenAI-style GET /models body.

Accepts {data: [{id, ...}]} and bare [{id, ...}] shapes.