remove legacy embedding model name (#703)

Now that OpenAI has deprecated all embeddings models except
text-embedding-ada-002, we should stop specifying a legacy embedding
model in the example. This will also avoid confusion from people (like
me) trying to specify model="text-embedding-ada-002" and having that
erroneously expanded to text-search-text-embedding-ada-002-query-001
pull/705/head
Scott Leibrand 2 years ago committed by GitHub
parent 75edd85fed
commit 34932dd211
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -18,7 +18,7 @@ class OpenAIEmbeddings(BaseModel, Embeddings):
.. code-block:: python
from langchain.embeddings import OpenAIEmbeddings
openai = OpenAIEmbeddings(model_name="davinci", openai_api_key="my-api-key")
openai = OpenAIEmbeddings(openai_api_key="my-api-key")
"""
client: Any #: :meta private:

Loading…
Cancel
Save