From fa6e253b371f6560d6b0d9209bf5bd29ae46b3a1 Mon Sep 17 00:00:00 2001 From: James Briggs Date: Tue, 21 May 2024 15:22:46 +0800 Subject: [PATCH 1/2] chore: update version --- pyproject.toml | 2 +- semantic_router/__init__.py | 2 +- semantic_router/encoders/openai.py | 4 ++-- 3 files changed, 4 insertions(+), 4 deletions(-) diff --git a/pyproject.toml b/pyproject.toml index 9e2c8c08..9b4c3903 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -1,6 +1,6 @@ [tool.poetry] name = "semantic-router" -version = "0.0.43" +version = "0.0.44" 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 aa30b0b6..74ba926f 100644 --- a/semantic_router/__init__.py +++ b/semantic_router/__init__.py @@ -4,4 +4,4 @@ __all__ = ["RouteLayer", "HybridRouteLayer", "Route", "LayerConfig"] -__version__ = "0.0.43" +__version__ = "0.0.44" diff --git a/semantic_router/encoders/openai.py b/semantic_router/encoders/openai.py index 86f46e8c..e46e6c49 100644 --- a/semantic_router/encoders/openai.py +++ b/semantic_router/encoders/openai.py @@ -19,8 +19,8 @@ "text-embedding-ada-002": EncoderInfo( name="text-embedding-ada-002", token_limit=8192 ), - "text-embed-3-small": EncoderInfo(name="text-embed-3-small", token_limit=8192), - "text-embed-3-large": EncoderInfo(name="text-embed-3-large", token_limit=8192), + "text-embedding-3-small": EncoderInfo(name="text-embedding-3-small", token_limit=8192), + "text-embedding-3-large": EncoderInfo(name="text-embedding-3-large", token_limit=8192), } From 7646a117cefdfd6029d69a013d7ece1f729a7065 Mon Sep 17 00:00:00 2001 From: James Briggs Date: Tue, 21 May 2024 15:26:02 +0800 Subject: [PATCH 2/2] fix: lint --- semantic_router/encoders/openai.py | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/semantic_router/encoders/openai.py b/semantic_router/encoders/openai.py index e46e6c49..bd68727f 100644 --- a/semantic_router/encoders/openai.py +++ b/semantic_router/encoders/openai.py @@ -19,8 +19,12 @@ "text-embedding-ada-002": EncoderInfo( name="text-embedding-ada-002", token_limit=8192 ), - "text-embedding-3-small": EncoderInfo(name="text-embedding-3-small", token_limit=8192), - "text-embedding-3-large": EncoderInfo(name="text-embedding-3-large", token_limit=8192), + "text-embedding-3-small": EncoderInfo( + name="text-embedding-3-small", token_limit=8192 + ), + "text-embedding-3-large": EncoderInfo( + name="text-embedding-3-large", token_limit=8192 + ), }