Retrieve file content
HttpResponse files().content(FileContentParamsparams = FileContentParams.none() , RequestOptionsrequestOptions = RequestOptions.none() )
GET
/files/{file_id}/contentReturns a response containing the contents of the specified file.
Retrieve file content
package com.openai.example;
import com.openai.client.OpenAIClient;
import com.openai.client.okhttp.OpenAIOkHttpClient;
import com.openai.core.http.HttpResponse;
import com.openai.models.files.FileContentParams;
public final class Main {
private Main() {}
public static void main(String[] args) {
OpenAIClient client = OpenAIOkHttpClient.fromEnv();
HttpResponse response = client.files().content("file_id");
}
}