langchain
langchain copied to clipboard
No Documentation for constructor parameter client
I just started a new project in langchain and when I try to create a OpenAIEmbeddings object, I'm asked for a client which has a type Any. This is not in documentation anywhere and it's hard to figure out what client is required.
It would be amazing if someone can clarify the use-case for this. I would be happy to raise a PR to document this.
Error Screenshot
Version
s/21296041/7155ffef-acdf-4a21-80d7-4b60484fab93)
https://github.com/hwchase17/langchain/blob/7ad13cdbdbd45b1348f199419da836bdbcbc02e2/langchain/embeddings/openai.py#L108
Generated by a 🤖
I found related issues that might be helpful. I did my best to summarize the solutions, but I recommend looking at the related issues yourself.
Related Issues
Open Issues
DOC: client required but not in example code
This response is meant to be helpful and save users time. It is not meant to be a precise solution.
Please leave a 👍 if this is helpful and 👎 if it is irrelevant
Hi, @sriramr98! I'm Dosu, and I'm here to help the LangChain team manage their backlog. I wanted to let you know that we are marking this issue as stale.
From what I understand, you raised an issue regarding the missing documentation for the "client" parameter in the OpenAIEmbeddings class of the LangChain project. You were seeking clarification on its use-case and even expressed your willingness to contribute by raising a pull request to document it. User "devstein" also commented, suggesting a related issue that might be helpful.
Before we proceed, we would like to confirm if this issue is still relevant to the latest version of the LangChain repository. If it is, please let us know by commenting on this issue. Otherwise, feel free to close the issue yourself, or it will be automatically closed in 7 days.
Thank you for your understanding and contribution to the LangChain project. We appreciate your support!