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

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

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



안녕하세요.

"4-9. PDF로 학습하는 ChatGPT 만들기" 과정에서 PDF 학습 기본코드 실행 중 RateLimitError 가 떴는데요.

학습 시작시 받았던 ChatGPT API 키의 current quota가 초과 된것 같습니다.

어떻게 하면 될까요?


스파르타 즉문즉답


작성한 코드 및 에러 메세지


WARNING:langchain_community.embeddings.openai:Retrying langchain_community.embeddings.openai.embed_with_retry.<locals>._embed_with_retry in 4.0 seconds as it raised RateLimitError: You exceeded your current quota, please check your plan and billing details. For more information on this error, read the docs: https://platform.openai.com/docs/guides/error-codes/api-errors..
---------------------------------------------------------------------------
RateLimitError                            Traceback (most recent call last)
<ipython-input-9-ffa3c4d13d03> in <cell line: 0>()
     27 texts = text_splitter.split_text(raw_text)
     28 embeddings = OpenAIEmbeddings()
---> 29 docsearch = FAISS.from_texts(texts, embeddings)
     30 


17 frames

/usr/local/lib/python3.11/dist-packages/openai/api_requestor.py in _interpret_response_line(self, rbody, rcode, rheaders, stream)
    761         stream_error = stream and "error" in resp.data
    762         if stream_error or not 200 <= rcode < 300:
--> 763             raise self.handle_error_response(
    764                 rbody, rcode, resp.data, rheaders, stream_error=stream_error
    765             )

RateLimitError: You exceeded your current quota, please check your plan and billing details. For more information on this error, read the docs: https://platform.openai.com/docs/guides/error-codes/api-errors.

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