Update langchain to 1.x to fix CVE in langchain-core (dependabot #174)

langchain-core had a high-severity path traversal vulnerability in
legacy load_prompt functions, fixed in 1.2.22. Declare langchain and
openpipe extras as conflicting since langchain-openai now requires
openai>=2.26 while openpipe caps openai<=1.97.1.
This commit is contained in:
Mark Backman
2026-03-29 09:47:51 -04:00
parent e1756688bc
commit 336954f83f
2 changed files with 384 additions and 249 deletions

View File

@@ -81,7 +81,7 @@ inworld = []
koala = [ "pvkoala~=2.0.3" ]
kokoro = [ "kokoro-onnx>=0.5.0,<1", "requests>=2.32.5,<3" ]
krisp = [ "pipecat-ai-krisp~=0.4.0" ]
langchain = [ "langchain~=0.3.28", "langchain-community~=0.3.31", "langchain-openai~=0.3.29" ]
langchain = [ "langchain>=1.2.13,<2", "langchain-community>=0.4.1,<1", "langchain-openai>=1.1.12,<2" ]
lemonslice = [ "pipecat-ai[daily]" ]
livekit = [ "livekit>=1.0.13,<2", "livekit-api>=1.0.5,<2", "tenacity>=8.2.3,<10.0.0", "pyjwt>=2.12.0,<3" ]
lmnt = [ "pipecat-ai[websockets-base]" ]
@@ -178,6 +178,14 @@ where = ["src"]
"pipecat.services.aws_nova_sonic" = ["src/pipecat/services/aws_nova_sonic/ready.wav"]
"pipecat.audio.turn.smart_turn.data" = ["src/pipecat/audio/turn/smart_turn/data/smart-turn-v3.2-cpu.onnx"]
[tool.uv]
conflicts = [
[
{ extra = "langchain" },
{ extra = "openpipe" },
],
]
[tool.pytest.ini_options]
addopts = "--verbose"
testpaths = ["tests"]

623
uv.lock generated

File diff suppressed because it is too large Load Diff