Migrate to langchain_anthropic and add ChatAnthropic enhancements (#1551)

Migrate to langchain_anthropic and enhance ChatAnthropic functionality

- Replace langchain_community with langchain_anthropic for ChatAnthropic
- Add support for selecting the Claude model in ChatAnthropic
- Implement top_p and top_k parameter support in ChatAnthropic
This commit is contained in:
Daiki Sakai 2024-03-22 20:47:34 +09:00 • committed by GitHub
commit 0b380afb66
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
3 changed files with 61 additions and 44 deletions

View file

@ -60,7 +60,6 @@ cohere = "^4.47.0"
python-multipart = "^0.0.7"
sqlmodel = "^0.0.14"
faiss-cpu = "^1.7.4"
anthropic = "^0.15.0"
orjson = "3.9.15"
multiprocess = "^0.70.14"
cachetools = "^5.3.1"
@ -105,6 +104,8 @@ elasticsearch = "^8.12.0"
pytube = "^15.0.0"
llama-index = "0.9.48"
langchain-openai = "^0.0.6"
urllib3 = "<2"
langchain-anthropic = "^0.1.4"
[tool.poetry.group.dev.dependencies]
pytest-asyncio = "^0.23.1"