mirror of
https://github.com/hwchase17/langchain.git
synced 2025-09-07 22:11:51 +00:00
partners[openai]: update the docstring of OpenAI, OpenAIEmbeddings and ChatOpenAI classes (#18908)
**Description:** Update the docstring of OpenAI, OpenAIEmbeddings and ChatOpenAI classes **Issue:** Update import module paths to the current LangChain API **Dependencies:** None **Lint and test**: `make format` and `make lint` were run This incorporates the review comments from langchain-ai/langchain#18637 which I closed due to an issue I had in updating that pr branch --------- Co-authored-by: Erick Friis <erick@langchain.dev>
This commit is contained in:
@@ -44,16 +44,15 @@ class OpenAIEmbeddings(BaseModel, Embeddings):
|
||||
environment variable ``OPENAI_API_KEY`` set with your API key or pass it
|
||||
as a named parameter to the constructor.
|
||||
|
||||
In order to use the library with Microsoft Azure endpoints, use
|
||||
AzureOpenAIEmbeddings.
|
||||
|
||||
Example:
|
||||
.. code-block:: python
|
||||
|
||||
from langchain_openai import OpenAIEmbeddings
|
||||
|
||||
openai = OpenAIEmbeddings(model="text-embedding-3-large")
|
||||
|
||||
In order to use the library with Microsoft Azure endpoints, use
|
||||
AzureOpenAIEmbeddings.
|
||||
|
||||
model = OpenAIEmbeddings(model="text-embedding-3-large")
|
||||
"""
|
||||
|
||||
client: Any = Field(default=None, exclude=True) #: :meta private:
|
||||
|
Reference in New Issue
Block a user