커뮤니티
포인트
쿠폰
내 강의실
국비 신청 내역
증명서
계정
로그아웃
학습 질문
개발 일지
나의 활동
답변 완료
APIRemovedInV1:
[스킬업] AI가 처음이어도 쉽게 배우는 생성형 AI A to Z
3주차
북마크
김*준
댓글
8
추천
0
조회수
13
조회수
13
답변 완료

* 겪고 있는 문제 상황을 최대한 자세하게 작성해주세요.

* 문제 해결을 위해 어떤 시도를 해보았는지 구체적으로 함께 알려주세요.


API key 넣고 실행했더니, 다음과 같은 메시지가 뜨네요.

APIRemovedInV1: 

You tried to access openai.ChatCompletion, but this is no longer supported in openai>=1.0.0 - see the README at https://github.com/openai/openai-python for the API.

You can run `openai migrate` to automatically upgrade your codebase to use the 1.0.0 interface. 

Alternatively, you can pin your installation to the old version, e.g. `pip install openai==0.28`

A detailed migration guide is available here: https://github.com/openai/openai-python/discussions/742

강의 내용보다 이런 문제들 해결하는데 훨씬 더 많은 시간이 소모되네요. 정말 짜증 납니다.







취소
 공유
취소
댓글 0
댓글 알림
나의얼굴