diff --git a/libs/partners/openai/README.md b/libs/partners/openai/README.md index e065b96854f..70176f8a482 100644 --- a/libs/partners/openai/README.md +++ b/libs/partners/openai/README.md @@ -10,22 +10,6 @@ pip install langchain-openai ``` - Get an OpenAI api key and set it as an environment variable (`OPENAI_API_KEY`) - -## LLM - -See a [usage example](http://python.langchain.com/docs/integrations/llms/openai). - -```python -from langchain_openai import OpenAI -``` - -If you are using a model hosted on `Azure`, you should use different wrapper for that: -```python -from langchain_openai import AzureOpenAI -``` -For a more detailed walkthrough of the `Azure` wrapper, see [here](http://python.langchain.com/docs/integrations/llms/azure_openai) - - ## Chat model See a [usage example](http://python.langchain.com/docs/integrations/chat/openai). @@ -53,4 +37,19 @@ If you are using a model hosted on `Azure`, you should use different wrapper for ```python from langchain_openai import AzureOpenAIEmbeddings ``` -For a more detailed walkthrough of the `Azure` wrapper, see [here](https://python.langchain.com/docs/integrations/text_embedding/azureopenai) \ No newline at end of file +For a more detailed walkthrough of the `Azure` wrapper, see [here](https://python.langchain.com/docs/integrations/text_embedding/azureopenai) + + +## LLM (Legacy) + +LLM refers to the legacy text-completion models that preceded chat models. See a [usage example](http://python.langchain.com/docs/integrations/llms/openai). + +```python +from langchain_openai import OpenAI +``` + +If you are using a model hosted on `Azure`, you should use different wrapper for that: +```python +from langchain_openai import AzureOpenAI +``` +For a more detailed walkthrough of the `Azure` wrapper, see [here](http://python.langchain.com/docs/integrations/llms/azure_openai)