makeBCT

#AI #OpenAI #Chatbot #Cloud #WordPress

[BCT AI Chatbot v0.6.0] gpt-3.5-turbo 모델 적용

OpenAI’s GPT (generative pre-trained transformer) 모델이 업데이트 됨에 따라 BCT 대화형 AI 0.6.0 버전에서도 최신 모델인 gpt-3.5-turbo를 적용하게 되었습니다.

gpt-3.5-turbo-0613 모델이 BCT 대화형 AI에 공식 적용됨에 따라 훈련 데이터 포맷이 기존 prompt-completion format 대신 chat-completion format 을 따라야 합니다. 그렇지 않다면 fine-tune 요청 시 다음과 같은 에러 메시지를 보게 됩니다.

OpenAI 문서에 설명된 Chat completions API 샘플은 다음과 같습니다.

response = openai.ChatCompletion.create(
model="gpt-3.5-turbo",
messages=[
{"role": "system", "content": "You are a helpful assistant."},
{"role": "user", "content": "Who won the world series in 2020?"},
{"role": "assistant", "content": "The Los Angeles Dodgers won the World Series in 2020."},
{"role": "user", "content": "Where was it played?"}
]
)

BCT 대화형 AI에 적용된 샘플 데이터는 다음과 같습니다.

주요 입력은 message 매개변수입니다. 메시지는 메시지 개체의 배열이어야 하며, 각 개체에는 역할(“system”, “user” 또는 “assistant”)과 content가 있습니다. 대화는 하나의 메시지만큼 짧을 수도 있고 여러 번 주고받을 수도 있습니다.

최신 OpenAI’s GPT (generative pre-trained transformer) API에 대한 보다 자세한 설명은 다음 URL을 참고하시기 바랍니다.

https://platform.openai.com/docs/guides/gpt

Leave a Reply

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

This site uses Akismet to reduce spam. Learn how your comment data is processed.

인기 글

Ubuntu 22.04 LTS에 Python 3.8 or 3.9 설치 방법
서버 : Vultr 클라우드OS: Ubuntu 22.04 LTS사용자 계정 생성하여 설치 진행함1. Start with the system updatesudo apt update...
오라클 클라우드 OCI 가입 드디어 성공 했습니다 (상세 후기)
2023년 2월 16일에 ‘오라클 클라우드 지급 검증 실패 글‘을 남긴 적이 있습니다.그 때 검색을 통해 해결 방법을 찾아 보았고, 당시 성공했던 분들의...
WSL2/Ubuntu 22.04 LTS에 Anaconda 설치 
WSL2/Ubuntu 환경에서 Python 버전별로 가상환경을 만드는 방법 중 그나마 Anaconda 방법이 좋은 것 같네요. 설치 방법은 간단합니다.1. apt update사용자...
사용자 작성 모듈 import 시 에러)(ModuleNotFoundError: No module named
파이썬 모듈을 만들고 테스트 할 때 ModuleNotFoundError: No module named 에러가 발생한 경우원인파이썬은 모듈을 불러올 때 모듈 설치 경로와 자신의...
Permission denied (publickey) 해결 방법
Plesk에서 생성된 system user로 ftp 접속 시 다음과 같은 에러 메시지가 발생하면서 접속이 되지 않습니다.상태: 152.67.193.32:49152에 연결... 응답: fzSftp...

BCT Ai Chatbot

답변을 준비중입니다 . . .