Retrieve container file content
client.containers.files.content.retrieve(stringfileID , ContentRetrieveParams { container_id } params , RequestOptionsoptions ?): Response
GET
/containers/{container_id}/files/{file_id}/contentRetrieve container file content
import OpenAI from 'openai';
const client = new OpenAI({
apiKey: process.env['OPENAI_API_KEY'], // This is the default and can be omitted
});
const content = await client.containers.files.content.retrieve('file_id', {
container_id: 'container_id',
});
console.log(content);
const data = await content.blob();
console.log(data);Response example
<binary content of the file>
Returns Examples
Response example
<binary content of the file>