python3Packages.{langchain,langchain-core,langchain-community,langchain-openai} update to latest 20241023 (#350758)

This commit is contained in:
Robert Schütz 2024-10-27 19:04:15 -07:00 committed by GitHub
commit 4e9d8be92d
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
5 changed files with 22 additions and 8 deletions

View File

@ -45,6 +45,11 @@ buildPythonPackage rec {
numpy
];
pythonRelaxDeps = [
# Boto @ 1.35 has outstripped the version requirement
"boto3"
];
nativeCheckInputs = [
langchain-standard-tests
pytest-asyncio

View File

@ -38,14 +38,14 @@
buildPythonPackage rec {
pname = "langchain-community";
version = "0.3.1";
version = "0.3.3";
pyproject = true;
src = fetchFromGitHub {
owner = "langchain-ai";
repo = "langchain";
rev = "refs/tags/langchain-community==${version}";
hash = "sha256-h7+89w8PkSpFxGGQKFC6FuB6Q2B27EYgLk0aiPqwp4s=";
hash = "sha256-xWr4v+4gL8LAegqerQc1SdAynPk5X8qLlPF211+OBvY=";
};
sourceRoot = "${src.name}/libs/community";

View File

@ -34,14 +34,14 @@
buildPythonPackage rec {
pname = "langchain-core";
version = "0.3.7";
version = "0.3.12";
pyproject = true;
src = fetchFromGitHub {
owner = "langchain-ai";
repo = "langchain";
rev = "refs/tags/langchain-core==${version}";
hash = "sha256-s2tqBJpWJNy0SnHWt0RQowmRbBD+7zqFEeDuFrUzr2U=";
hash = "sha256-WWzEIP/JirA4btYVy4+U7PSg6S8VnkZqxPLgLriWbTY=";
};
sourceRoot = "${src.name}/libs/core";
@ -119,6 +119,15 @@ buildPythonPackage rec {
# TypeError: exceptions must be derived from Warning, not <class 'NoneType'>
"test_chat_prompt_template_variable_names"
"test_create_model_v2"
# Comparison with magic strings
"test_prompt_with_chat_model"
"test_prompt_with_chat_model_async"
"test_prompt_with_llm"
"test_prompt_with_llm_parser"
"test_prompt_with_llm_and_async_lambda"
"test_prompt_with_chat_model_and_parser"
"test_combining_sequences"
]
++ lib.optionals stdenv.hostPlatform.isDarwin [
# Langchain-core the following tests due to the test comparing execution time with magic values.

View File

@ -28,14 +28,14 @@
buildPythonPackage rec {
pname = "langchain-openai";
version = "0.2.1";
version = "0.2.3";
pyproject = true;
src = fetchFromGitHub {
owner = "langchain-ai";
repo = "langchain";
rev = "refs/tags/langchain-openai==${version}";
hash = "sha256-M1gyw0Nmh+aLU9scbuqmK2kPyfwtaFaCfue+T8PLguQ=";
hash = "sha256-ENQOKvp9XJTTC34UoNO4LLvcBwfFRcbOAvX/qtzln6k=";
};
sourceRoot = "${src.name}/libs/partners/openai";

View File

@ -42,14 +42,14 @@
buildPythonPackage rec {
pname = "langchain";
version = "0.3.1";
version = "0.3.4";
pyproject = true;
src = fetchFromGitHub {
owner = "langchain-ai";
repo = "langchain";
rev = "refs/tags/langchain==${version}";
hash = "sha256-Zg+9ZwzTDKCyfz4T/tVIGfRUUmkE939hocxSWpFRngQ=";
hash = "sha256-MRpXR4nQDobzofhzkU5Y2OiEsi+VdjCcF/vcxcG/144=";
};
sourceRoot = "${src.name}/libs/langchain";