Skip to content

Commit

Permalink
Backport PR #558: Pin langchain-core dependency to prevent Settings…
Browse files Browse the repository at this point in the history
… UI crash (#559)

Co-authored-by: david qiu <david@qiu.dev>
  • Loading branch information
meeseeksmachine and dlqqq committed Jan 3, 2024
1 parent 1874a49 commit 5eb207b
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 0 deletions.
1 change: 1 addition & 0 deletions packages/jupyter-ai-magics/pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,7 @@ dependencies = [
"ipython",
"importlib_metadata>=5.2.0",
"langchain==0.0.350",
"langchain-core>=0.1.0,<0.1.4",
"typing_extensions>=4.5.0",
"click~=8.0",
"jsonpath-ng>=1.5.3,<2",
Expand Down
1 change: 1 addition & 0 deletions packages/jupyter-ai/pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,7 @@ dependencies = [
"aiosqlite>=0.18",
"importlib_metadata>=5.2.0",
"langchain==0.0.350",
"langchain-core>=0.1.0,<0.1.4",
"tiktoken", # required for OpenAIEmbeddings
"jupyter_ai_magics",
"dask[distributed]",
Expand Down
3 changes: 3 additions & 0 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -38,3 +38,6 @@ name = "Forbidden import of `pydantic` package. Please import from `langchain.py
type = "forbidden"
source_modules = ["jupyter_ai", "jupyter_ai_magics"]
forbidden_modules = ["pydantic"]

[tool.pytest.ini_options]
addopts = "--ignore packages/jupyter-ai-module-cookiecutter"

0 comments on commit 5eb207b

Please sign in to comment.