Skip to content

Commit

Permalink
Release v0.2.32
Browse files Browse the repository at this point in the history
  • Loading branch information
fern-api[bot] committed Apr 19, 2024
1 parent 6243fa0 commit 4bc0acc
Show file tree
Hide file tree
Showing 4 changed files with 13 additions and 5 deletions.
6 changes: 3 additions & 3 deletions poetry.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[tool.poetry]
name = "superagent-py"
version = "v0.2.31"
version = "v0.2.32"
description = ""
readme = "README.md"
authors = []
Expand Down
2 changes: 1 addition & 1 deletion src/superagent/core/client_wrapper.py
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down
8 changes: 8 additions & 0 deletions src/superagent/types/llm_provider.py
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,8 @@ class LlmProvider(str, enum.Enum):
TOGETHER_AI = "TOGETHER_AI"
ANTHROPIC = "ANTHROPIC"
BEDROCK = "BEDROCK"
GROQ = "GROQ"
MISTRAL = "MISTRAL"

def visit(
self,
Expand All @@ -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()
Expand All @@ -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()

0 comments on commit 4bc0acc

Please sign in to comment.