Hi
May I know if the SDK provides the TypeScript type for the response of retrieving file content?
const openai = new OpenAI();
const file = await openai.files.content("file-9SuLrMKmrcP2ckwaYNRFNw");
const text = await file.text();
// does the SDK provide the TypeScript type for this response?
// json {
// id: "...",
// customer_id: "...",
// response: { ... },
// error: { ... }
// }
const json = JSON.parse(text);
See https://platform.openai.com/docs/api-reference/files/retrieve-contents