From 4bc0acc7c2a8bcb3c268e307537186b69e88e888 Mon Sep 17 00:00:00 2001 From: fern-api <115122769+fern-api[bot]@users.noreply.github.com> Date: Fri, 19 Apr 2024 12:54:34 +0000 Subject: [PATCH] Release v0.2.32 --- poetry.lock | 6 +++--- pyproject.toml | 2 +- src/superagent/core/client_wrapper.py | 2 +- src/superagent/types/llm_provider.py | 8 ++++++++ 4 files changed, 13 insertions(+), 5 deletions(-) diff --git a/poetry.lock b/poetry.lock index 747fcb6..0608a7c 100644 --- a/poetry.lock +++ b/poetry.lock @@ -60,13 +60,13 @@ files = [ [[package]] name = "exceptiongroup" -version = "1.2.0" +version = "1.2.1" description = "Backport of PEP 654 (exception groups)" optional = false python-versions = ">=3.7" files = [ - {file = "exceptiongroup-1.2.0-py3-none-any.whl", hash = "sha256:4bfd3996ac73b41e9b9628b04e079f193850720ea5945fc96a08633c66912f14"}, - {file = "exceptiongroup-1.2.0.tar.gz", hash = "sha256:91f5c769735f051a4290d52edd0858999b57e5876e9f85937691bd4c9fa3ed68"}, + {file = "exceptiongroup-1.2.1-py3-none-any.whl", hash = "sha256:5258b9ed329c5bbdd31a309f53cbfb0b155341807f6ff7606a1e801a891b29ad"}, + {file = "exceptiongroup-1.2.1.tar.gz", hash = "sha256:a4785e48b045528f5bfe627b6ad554ff32def154f42372786903b7abcfe1aa16"}, ] [package.extras] diff --git a/pyproject.toml b/pyproject.toml index 5dee578..09585cd 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -1,6 +1,6 @@ [tool.poetry] name = "superagent-py" -version = "v0.2.31" +version = "v0.2.32" description = "" readme = "README.md" authors = [] diff --git a/src/superagent/core/client_wrapper.py b/src/superagent/core/client_wrapper.py index aed63cf..1a1a7ff 100644 --- a/src/superagent/core/client_wrapper.py +++ b/src/superagent/core/client_wrapper.py @@ -16,7 +16,7 @@ def get_headers(self) -> typing.Dict[str, str]: headers: typing.Dict[str, str] = { "X-Fern-Language": "Python", "X-Fern-SDK-Name": "superagent-py", - "X-Fern-SDK-Version": "v0.2.31", + "X-Fern-SDK-Version": "v0.2.32", } token = self._get_token() if token is not None: diff --git a/src/superagent/types/llm_provider.py b/src/superagent/types/llm_provider.py index 0349ba2..4def0f0 100644 --- a/src/superagent/types/llm_provider.py +++ b/src/superagent/types/llm_provider.py @@ -18,6 +18,8 @@ class LlmProvider(str, enum.Enum): TOGETHER_AI = "TOGETHER_AI" ANTHROPIC = "ANTHROPIC" BEDROCK = "BEDROCK" + GROQ = "GROQ" + MISTRAL = "MISTRAL" def visit( self, @@ -28,6 +30,8 @@ def visit( together_ai: typing.Callable[[], T_Result], anthropic: typing.Callable[[], T_Result], bedrock: typing.Callable[[], T_Result], + groq: typing.Callable[[], T_Result], + mistral: typing.Callable[[], T_Result], ) -> T_Result: if self is LlmProvider.OPENAI: return openai() @@ -43,3 +47,7 @@ def visit( return anthropic() if self is LlmProvider.BEDROCK: return bedrock() + if self is LlmProvider.GROQ: + return groq() + if self is LlmProvider.MISTRAL: + return mistral()