llama_index icon indicating copy to clipboard operation
llama_index copied to clipboard

adding latest openai version

Open PandaWhoCodes opened this issue 2 years ago • 2 comments

To ensure requests do not fail as seen in #250

PandaWhoCodes avatar Feb 01 '23 10:02 PandaWhoCodes

out of curiosity, why does this work? is there a stackoverflow/gh thread for this?

jerryjliu avatar Feb 01 '23 16:02 jerryjliu

The request timeout was added 5 months ago to openAI anyone having openai client version before might face issue cause this param didnt exist before that.

https://github.com/openai/openai-python/pull/116

The issue is with langchain cause it assumes you are using the latest openapi client

It is reported in langchain - https://github.com/hwchase17/langchain/issues/626

PandaWhoCodes avatar Feb 01 '23 16:02 PandaWhoCodes

got it, thanks

jerryjliu avatar Feb 01 '23 18:02 jerryjliu