Function load_input_file

Source
pub async fn load_input_file(
    path: impl AsRef<Path>,
) -> Result<BatchInputData, JsonParseError>
Expand description

ALL-OR-NOTHING loader for the input file.

Reads NDJSON (one LanguageModelBatchAPIRequest per line). If any line is invalid, we immediately fail (do not skip).