virattt / chat_app

An LLM-powered chat application that uses Django, React, and LangChain.
116 stars 22 forks source link

OpenAI APIConnectionError #7

Open Saminu opened 1 year ago

Saminu commented 1 year ago

I get this error when running the demo locally, I have looked into it and it seems it's an error rate limit request to OpenAI, anyone else faced something similar ?

WARNING Retrying langchain.chat_models.openai.acompletion_with_retry.._completion_with_retry in 4.0 seconds as it raised APIConnectionError: Error communicating with OpenAI.

Saminu commented 1 year ago

Found a solution to this, it's a certificate issue with mac systems and python

https://stackoverflow.com/questions/51925384/unable-to-get-local-issuer-certificate-when-using-requests-in-python