I'm currently trying langchain, and after the first basic tutorial (this following code), i have a RateLimitError.
from langchain.llms import OpenAI
llm = OpenAI(temperature=0.9)
llm.predict("What would be a good company name for a company that makes colorful socks?")
Here's the error:
Retrying langchain.llms.openai.completion_with_retry.<locals>._completion_with_retry in 4.0 seconds as it raised RateLimitError: You exceeded your current quota, please check your plan and billing details..
To your information, i don't have any kind of plan or billing on OpenAI, is it free to use langchain with OpenAI, or is it mandatory to have billing plan ?
solved
To fix this, I just set up billing plan on https://platform.openai.com/account/billing/overview, and i works !