Skip to Content
GPT API를 활용한 인공지능 앱 개발(2판)
book

GPT API를 활용한 인공지능 앱 개발(2판)

by 올리비에 케일린, 마리 알리스 블레트, 이일섭, 박태환
December 2024
Beginner to intermediate
320 pages
7h 25m
Korean
Hanbit Media, Inc.
Content preview from GPT API를 활용한 인공지능 앱 개발(2판)
264
GPT API를 활용한 인공지능 앱 개발(2판)
=
client
.
beta
.
assistants
.
retrieve
('
asst
_[...]')
입력해 원하는 어시스턴트
를 특정해 대화할 수 있습니다. 어시스턴트
API
를 삭제하려면
client
.
beta
.
assistants
.
delete
에 삭제할 어시스턴트
ID
를 입력합니다.
5.4.2
어시스턴트
API
를 통한 대화 관리
어시스턴트를 이용해 대화를 효과적으로 관리하기 위해 오픈
AI
는 계층적 구조를 통해 상호작
용하는 객체 집합을 정의했습니다.
스레드 : 이것은 어시스턴트와 사용자가 대화하는 세션을 나타냅니다. 챗봇에서 사용자가 대화를 시작하
면 사용자마다 하나의 스레드를 만드는 것이 좋습니다. 스레드의 목적은 메시지를 저장하는 것으로, 스
레드는 크기 제한이 없기 때문에 스레드에 원하는 만큼 메시지를 추가할 수 있으며 모델의 컨텍스트 크
기 제한에 맞추어 자동으로 잘림을 처리할 수 있습니다. 스레드를 사용할 때는 모델에 전달되는 입력 토
큰 수에 대한 제어를 위임합니다. 이는 비용에 대한 제어도 줄어든다는 것을 의미합니다.
메시지 : 메시지는 어시스턴트나 사용자가 작성한 텍스트를 포함합니다. 스레드와 연결되어야 하며, 사용
자가 파일을 올리도록 허용하면 파일을 첨부할 수 있습니다. 현재 오픈
AI
GPT
-
4
비전을 통해 메시
지에 있는 이미지 파일을 이용한 채팅 완성을 지원하지 않지만, 미래에 지원할 계획입니다.
실행 : 어시스턴트가 사용자의 메시지에 응답하려면 실행을 생성해야 합니다. ...
Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.

Read now

Unlock full access

More than 5,000 organizations count on O’Reilly

AirBnbBlueOriginElectronic ArtsHomeDepotNasdaqRakutenTata Consultancy Services

QuotationMarkO’Reilly covers everything we've got, with content to help us build a world-class technology community, upgrade the capabilities and competencies of our teams, and improve overall team performance as well as their engagement.
Julian F.
Head of Cybersecurity
QuotationMarkI wanted to learn C and C++, but it didn't click for me until I picked up an O'Reilly book. When I went on the O’Reilly platform, I was astonished to find all the books there, plus live events and sandboxes so you could play around with the technology.
Addison B.
Field Engineer
QuotationMarkI’ve been on the O’Reilly platform for more than eight years. I use a couple of learning platforms, but I'm on O'Reilly more than anybody else. When you're there, you start learning. I'm never disappointed.
Amir M.
Data Platform Tech Lead
QuotationMarkI'm always learning. So when I got on to O'Reilly, I was like a kid in a candy store. There are playlists. There are answers. There's on-demand training. It's worth its weight in gold, in terms of what it allows me to do.
Mark W.
Embedded Software Engineer

You might also like

개발 7년차, 매니저 1일차

개발 7년차, 매니저 1일차

권원상, 한민주, 카미유 푸르니에
GPT-4를 활용한 인공지능 앱 개발

GPT-4를 활용한 인공지능 앱 개발

올리비에 케일린, 마리 알리스 블레트

Publisher Resources

ISBN: 9791169213295