Function retrieve_file_content

Source
pub async fn retrieve_file_content(
    client: &OpenAIClient,
    file_id: &str,
) -> Result<Vec<u8>, OpenAIError>
Expand description

Downloads the content of a file by its ID.

Note: For fine-tuning .jsonl files, you can retrieve the training data to verify or reuse it.

§Parameters

  • file_id - The file ID to download.

§Returns

A Vec<u8> containing the raw file data.