-
Notifications
You must be signed in to change notification settings - Fork 23
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
📦 Update dependencies and refactor code to use new langchain libraries
- Loading branch information
1 parent
d4875fb
commit 83cd6f8
Showing
4 changed files
with
434 additions
and
67 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -4,12 +4,11 @@ version = "0.3.1" | |
description = "🔖 write prompts as python functions" | ||
authors = [{ name = "Shroominic", email = "[email protected]" }] | ||
dependencies = [ | ||
"langchain_core>=0.1", | ||
"langchain-core>=0.1", | ||
"pydantic-settings>=2", | ||
"docstring-parser>=0.15", | ||
"jinja2>=3", | ||
"openai>=1.12", | ||
"tiktoken>=0.6", | ||
"langchain-openai>=0.0.8", | ||
] | ||
license = "MIT" | ||
readme = "README.md" | ||
|
@@ -56,18 +55,28 @@ dev-dependencies = [ | |
] | ||
|
||
[project.optional-dependencies] | ||
openai = ["langchain_openai"] | ||
ollama = ["langchain_community"] | ||
llamacpp = ["llama-cpp-python>=0.2.32", "huggingface_hub>=0.20"] | ||
pillow = ["pillow"] | ||
example-extras = ["langchain>=0.1", "faiss-cpu>=1.7.4", "beautifulsoup4>=4.12"] | ||
openai = ["langchain-openai"] | ||
ollama = ["langchain-community"] | ||
anthropic = ["langchain-anthropic"] | ||
google = ["langchain-google-genai"] | ||
llamacpp = ["llama-cpp-python>=0.2.32", "huggingface-hub>=0.20"] | ||
image = ["pillow"] | ||
extras = [ | ||
"langchain>=0.1", | ||
"faiss-cpu>=1.7.4", | ||
"beautifulsoup4>=4.12", | ||
"unstructured>=0.12.5", | ||
"pdf2image>=1.17.0", | ||
"pdfminer>=20191125", | ||
] | ||
all = [ | ||
"funcchain[pillow]", | ||
"funcchain[image]", | ||
"funcchain[openai]", | ||
"funcchain[google]", | ||
"funcchain[ollama]", | ||
"funcchain[llamacpp]", | ||
"funcchain[example-extras]", | ||
"langchain", | ||
"funcchain[anthropic]", | ||
"funcchain[extras]", | ||
] | ||
|
||
[tool.hatch.metadata] | ||
|
Oops, something went wrong.