From dcb320da525eee644e675fa044f46ffdb335f0c1 Mon Sep 17 00:00:00 2001 From: Igor Ilic Date: Mon, 2 Dec 2024 19:35:50 +0100 Subject: [PATCH] chore: Add groq and langfuse as optional dependencies Added groq and langfuse as optional dependencies Chore COG-595 --- poetry.lock | 12 +++++++----- pyproject.toml | 6 ++++-- 2 files changed, 11 insertions(+), 7 deletions(-) diff --git a/poetry.lock b/poetry.lock index 7584a106d..7d09c340d 100644 --- a/poetry.lock +++ b/poetry.lock @@ -519,7 +519,7 @@ dev = ["freezegun (>=1.0,<2.0)", "pytest (>=6.0)", "pytest-cov"] name = "backoff" version = "2.2.1" description = "Function decoration for backoff and retry" -optional = false +optional = true python-versions = ">=3.7,<4.0" files = [ {file = "backoff-2.2.1-py3-none-any.whl", hash = "sha256:63579f9a0628e06278f7e47b7d7d5b6ce20dc65c5e96a6f3ca99a6adca0396e8"}, @@ -2022,7 +2022,7 @@ colorama = ">=0.4" name = "groq" version = "0.8.0" description = "The official Python library for the groq API" -optional = false +optional = true python-versions = ">=3.7" files = [ {file = "groq-0.8.0-py3-none-any.whl", hash = "sha256:f5e4e892d45001241a930db451e633ca1f0007e3f749deaa5d7360062fcd61e3"}, @@ -3229,7 +3229,7 @@ six = "*" name = "langfuse" version = "2.53.9" description = "A client library for accessing langfuse" -optional = false +optional = true python-versions = "<4.0,>=3.8.1" files = [ {file = "langfuse-2.53.9-py3-none-any.whl", hash = "sha256:04363bc323f7513621c88a997003f7b906ae8f5d096bd54221cfcb6bf7a6f16a"}, @@ -7306,7 +7306,7 @@ files = [ name = "wrapt" version = "1.16.0" description = "Module for decorators, wrappers and monkey patching." -optional = false +optional = true python-versions = ">=3.6" files = [ {file = "wrapt-1.16.0-cp310-cp310-macosx_10_9_x86_64.whl", hash = "sha256:ffa565331890b90056c01db69c0fe634a776f8019c143a5ae265f9c6bc4bd6d4"}, @@ -7631,7 +7631,9 @@ type = ["pytest-mypy"] [extras] falkordb = ["falkordb"] filesystem = ["botocore"] +groq = ["groq"] langchain = ["langchain_text_splitters", "langsmith"] +langfuse = ["langfuse"] llama-index = ["llama-index-core"] neo4j = ["neo4j"] notebook = [] @@ -7643,4 +7645,4 @@ weaviate = ["weaviate-client"] [metadata] lock-version = "2.0" python-versions = ">=3.9.0,<3.12" -content-hash = "c707b7e45a49a3c8c00b71292ca42898f2c5905f1e62bc7c9bc48d7423e9d990" +content-hash = "6b57d44b0924bcf64397b3807c2a6ba369166e1d2102b5312c8f8ae2d5323376" diff --git a/pyproject.toml b/pyproject.toml index 019415ee1..6fac2597c 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -59,8 +59,8 @@ langdetect = "1.0.9" posthog = {version = "^3.5.0", optional = true} lancedb = "0.15.0" litellm = "1.49.1" -groq = "0.8.0" -langfuse = "^2.32.0" +groq = {version = "0.8.0", optional = true} +langfuse = {version = "^2.32.0", optional = true} pydantic-settings = "^2.2.1" anthropic = "^0.26.1" sentry-sdk = {extras = ["fastapi"], version = "^2.9.0"} @@ -82,6 +82,8 @@ langchain = ["langsmith", "langchain_text_splitters"] llama-index = ["llama-index-core"] posthog = ["posthog"] falkordb = ["falkordb"] +groq = ["groq"] +langfuse = ["langfuse"] [tool.poetry.group.dev.dependencies]