Skip to content

The agent engineering platform.

[pyproject.toml] add `tiktoken` when install `langchain[openai]` (#4514)

Ofey Chan1c0ec26e40f0
diff --git a/pyproject.toml b/pyproject.toml
index 8ae72f0e50..346e6eaa2e 100644
--- a/pyproject.toml
+++ b/pyproject.toml
@@ -160,7 +160,7 @@ setuptools = "^67.6.1"
[tool.poetry.extras]
llms = ["anthropic", "cohere", "openai", "nlpcloud", "huggingface_hub", "manifest-ml", "torch", "transformers"]
qdrant = ["qdrant-client"]
-openai = ["openai"]
+openai = ["openai", "tiktoken"]
cohere = ["cohere"]
in_memory_store = ["docarray"]
hnswlib = ["docarray", "protobuf", "hnswlib"]