docs: langchain-openai (#15513)

Updates docs and cookbooks to import ChatOpenAI, OpenAI, and OpenAI
Embeddings from `langchain_openai`

There are likely more

---------

Co-authored-by: Harrison Chase <hw.chase.17@gmail.com>
This commit is contained in:
Erick Friis
2024-01-06 15:54:48 -08:00
committed by GitHub
parent be612f408e
commit b1fa726377
414 changed files with 808 additions and 834 deletions

View File

@@ -1,5 +1,5 @@
from langchain_community.chat_models import ChatOpenAI
from langchain.prompts import ChatPromptTemplate
from langchain_core.prompts import ChatPromptTemplate
from langchain_openai import ChatOpenAI
_prompt = ChatPromptTemplate.from_messages(
[

View File

@@ -7,8 +7,9 @@ readme = "README.md"
[tool.poetry.dependencies]
python = ">=3.8.1,<4.0"
langchain = ">=0.0.313, <0.1"
openai = "^0.28.1"
langchain-core = ">=0.1.5"
langchain-openai = ">=0.0.1"
[tool.poetry.group.dev.dependencies]
langchain-cli = ">=0.0.4"