정의
Files are used to upload documents that can be used with features like Fine-tuning.
API
총 5개 API가 있고, 이번에는 Retrieve file content 살펴 보겠습니다.
List files / Upload file / Delete file / Retrieve file / Retrieve file content
GET https://api.openai.com/v1/files/{file_id}/content
Returns the contents of the specified file
Path parameters
file_id (string / 필수) | The ID of the file to use for this request |
Example request
curl https://api.openai.com/v1/files/file-XjGxS3KTG0uNmNOK362iJua3/content \
-H "Authorization: Bearer $OPENAI_API_KEY" > file.jsonl
결과
API 호출 결과는 다음과 같습니다.