Prompt Engineering for Beginners - Tutorial 7 - New OpenAI Updates

thenewboston · 4:50 · Watch on YouTube

오류 AttributeError: module 'openai' has no attribute 'ChatCompletion'는 OpenAI Python 라이브러리의 버전 1.x가 구문을 변경했기 때문에 발생하며, v0.28용으로 작성된 코드는 더 이상 실행되지 않습니다. 수정에는 세 가지 부분이 있습니다: 최신 라이브러리를 다시 설치하고, OpenAI()로 클라이언트 객체를 만들고, op...

Read the full summary on retube

English