-
Notifications
You must be signed in to change notification settings - Fork 15.7k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
chain.run threw 403 error #1795
Comments
This looks like an issue with the upstream API and not LangChain itself. LangChain is not responsible for upstream API availability or rate limiting policies. |
@dlqqq How can I set a limit for response time? I'm using |
@mzhadigerov Unfortunately, a quick glance at the |
sorry @dlqqq ,but what it has to do with pinecone? The problem arises in openai side, not in pinecone side. Please, correct me If I misunderstood you. |
@mzhadigerov Sorry, I misread your error log. Yes, you are correct, this is an issue with the upstream OpenAI API.
There actually is a TIMEOUT = 60 # <= timeout in seconds. default is 600 (set by OpenAI)
llm = OpenAI(temperature=0, openai_api_key=OPENAI_API_KEY, request_timeout=TIMEOUT) This change was implemented by #398. Support for the |
@mzhadigerov Can we close this issue? |
I'm using the pipeline for Q&A pipeline on non-english language:
It stucks in
res = chain.run(input_documents=docs, question=query)
lane. I'm waiting for ~20 mins already. What's the reason for that and how to investigate?UPD
After ~30 mins I got
What's the reason for that and how can I fix it?
The text was updated successfully, but these errors were encountered: