From 8ac959a3bd006fd13c9a3aaa0c3a3e35f027ea9b Mon Sep 17 00:00:00 2001 From: James Briggs Date: Thu, 16 May 2024 13:27:14 +0800 Subject: [PATCH 1/3] chore: more flexible tiktoken dep --- poetry.lock | 2 +- pyproject.toml | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/poetry.lock b/poetry.lock index ed829510..c5e9da1b 100644 --- a/poetry.lock +++ b/poetry.lock @@ -4455,4 +4455,4 @@ vision = ["pillow", "torch", "torchvision", "transformers"] [metadata] lock-version = "2.0" python-versions = ">=3.9,<3.13" -content-hash = "24de8cd2a260ccf1ce5f2edba24a165a36d8712fdc63c14a3be60a796b9533fb" +content-hash = "2245bedb29337628b1acb93622a1618fcca827c46013758a644b8ed065d200d5" diff --git a/pyproject.toml b/pyproject.toml index b3de6b2c..a762e218 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -33,7 +33,7 @@ pinecone-client = {version="^3.0.0", optional = true} regex = "^2023.12.25" torchvision = { version = "^0.17.0", optional = true} pillow = { version = "^10.2.0", optional = true} -tiktoken = "^0.6.0" +tiktoken = ">=0.6.0,<1.0.0" matplotlib = { version = "^3.8.3", optional = true} qdrant-client = {version = "^1.8.0", optional = true} google-cloud-aiplatform = {version = "^1.45.0", optional = true} From 5d9f62ceb89fd7bebe90e4d71bd0aee27c6acdb7 Mon Sep 17 00:00:00 2001 From: James Briggs Date: Thu, 16 May 2024 13:46:22 +0800 Subject: [PATCH 2/3] chore: flexible deps --- poetry.lock | 2 +- pyproject.toml | 18 +++++++++--------- 2 files changed, 10 insertions(+), 10 deletions(-) diff --git a/poetry.lock b/poetry.lock index c5e9da1b..64162b4e 100644 --- a/poetry.lock +++ b/poetry.lock @@ -4455,4 +4455,4 @@ vision = ["pillow", "torch", "torchvision", "transformers"] [metadata] lock-version = "2.0" python-versions = ">=3.9,<3.13" -content-hash = "2245bedb29337628b1acb93622a1618fcca827c46013758a644b8ed065d200d5" +content-hash = "9b6feb9b37dd0dc278ffe5470012379c96a1e9a6e5b75ecb3b970cc3e27912d2" diff --git a/pyproject.toml b/pyproject.toml index a762e218..d7c89ea4 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -17,22 +17,22 @@ packages = [{include = "semantic_router"}] [tool.poetry.dependencies] python = ">=3.9,<3.13" pydantic = "^2.5.3" -openai = "^1.10.0" -cohere = "^5.00" -mistralai= {version = "^0.0.12", optional = true} +openai = ">=1.10.0,<2.0.0" +cohere = ">=5.00,<6.00" +mistralai= {version = ">=0.0.12,<0.1.0", optional = true} numpy = "^1.25.2" colorlog = "^6.8.0" pyyaml = "^6.0.1" -pinecone-text = {version = "^0.7.1", optional = true} +pinecone-text = {version = ">=0.7.1,<0.8.0", optional = true} fastembed = {version = "^0.2.4", optional = true, python = "<3.12"} -torch = {version = "^2.1.0", optional = true} +torch = {version = ">=2.1.0,<2.6.0", optional = true} transformers = {version = "^4.36.2", optional = true} llama-cpp-python = {version = "^0.2.28", optional = true} colorama = "^0.4.6" -pinecone-client = {version="^3.0.0", optional = true} -regex = "^2023.12.25" -torchvision = { version = "^0.17.0", optional = true} -pillow = { version = "^10.2.0", optional = true} +pinecone-client = {version=">=3.0.0,<4.0.0", optional = true} +regex = ">=2023.12.25" +torchvision = { version = ">=0.17.0,<0.18.0", optional = true} +pillow = { version = ">=10.2.0,<11.0.0", optional = true} tiktoken = ">=0.6.0,<1.0.0" matplotlib = { version = "^3.8.3", optional = true} qdrant-client = {version = "^1.8.0", optional = true} From 3a4a1773316fe2dba5de80048956009be0ab5b67 Mon Sep 17 00:00:00 2001 From: James Briggs Date: Thu, 16 May 2024 13:48:38 +0800 Subject: [PATCH 3/3] chore: update version --- pyproject.toml | 2 +- semantic_router/__init__.py | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/pyproject.toml b/pyproject.toml index d7c89ea4..2ffcd6bd 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -1,6 +1,6 @@ [tool.poetry] name = "semantic-router" -version = "0.0.42" +version = "0.0.43" description = "Super fast semantic router for AI decision making" authors = [ "James Briggs ", diff --git a/semantic_router/__init__.py b/semantic_router/__init__.py index 98188bd1..aa30b0b6 100644 --- a/semantic_router/__init__.py +++ b/semantic_router/__init__.py @@ -4,4 +4,4 @@ __all__ = ["RouteLayer", "HybridRouteLayer", "Route", "LayerConfig"] -__version__ = "0.0.42" +__version__ = "0.0.43"