The OpenAI LangChain libraries have changed locations and the examples need to be updated appropriately. AFAICT, the following changes need to be made:
Line 3 of app/server.py needs to be changed to from langchain_openai import ChatOpenAI
The [tool.poetry.dependencies] section of pyproject.toml needs to have langchain-openai = "^0.0.5" added
The poetry.lock file needs to be updated with poetry lock (else container builds will fail)
These changes need to be applied to all language variations of the the AWS LangServe examples.
The OpenAI LangChain libraries have changed locations and the examples need to be updated appropriately. AFAICT, the following changes need to be made:
app/server.py
needs to be changed tofrom langchain_openai import ChatOpenAI
[tool.poetry.dependencies]
section ofpyproject.toml
needs to havelangchain-openai = "^0.0.5"
addedpoetry.lock
file needs to be updated withpoetry lock
(else container builds will fail)These changes need to be applied to all language variations of the the AWS LangServe examples.