chore: remove unnecessary deps #1285
Merged
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Disclaimer: Experimental PR review
Greptile Summary
This PR performs a comprehensive dependency cleanup, removing numerous third-party integration dependencies and associated tests from the langfuse-python project. The changes include:
Dependency Removals:
pyproject.tomlincluding vector databases (chromadb), LLM providers (anthropic, cohere, google-cloud-aiplatform, langchain-mistralai, langchain-groq, etc.), and supporting libraries (bson, boto3, pymongo, tiktoken)Test Suite Streamlining:
test_extract_model.py(158 lines) which tested model name extraction across 20+ LangChain LLM providerstest_langchain.pyincluding retrieval chains, document loaders, text splitters, and vector store integrationstest_json.pytests/utils.pyThis cleanup transforms the project from having comprehensive third-party integration testing to focusing on core Langfuse functionality with langchain-openai as the primary integration point. The changes align with reducing maintenance overhead and dependency complexity while preserving essential callback tracing and observability features that are central to Langfuse's purpose.
Confidence score: 3/5
pyproject.tomlmypy overrides section which still references removed packagesImportant
Remove unnecessary dependencies and related tests to streamline the project and focus on core functionality.
pyproject.toml, including vector databases, LLM providers, and supporting libraries.llama-indexfrom poetry extras.test_extract_model.pywhich tested model name extraction for LangChain LLM providers.test_langchain.py.test_json.py.tests/utils.py.This description was created by
for 30c52b6. You can customize this summary. It will automatically update as commits are pushed.