parse_openai_response

Function parse_openai_response 

Source
fn parse_openai_response(json: &Value) -> Result<Vec<Vec<f32>>>
Expand description

Parse the OpenAI embeddings API response JSON.

Extracts the data[].embedding arrays and returns them in order.