2023년 May 4일
  1. AI 트레이닝 센터
  2. BCT AI 솔루션
  3. BCT AI Chatbot
  4. OpenAI API : Files 살펴 보겠습니다 (2)

OpenAI API : Files 살펴 보겠습니다 (2)

정의

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 호출 결과는 다음과 같습니다.

Leave a Reply

Your email address will not be published. Required fields are marked *

연관 글
BCT NEWS
인기 글
BCT AI Chatbot
개발 히스토리
워드프레스 유지보수
BCT AI Chatbot
BCT AI Chatbot