Skip to content

Commit

Permalink
Release v0.2.33
Browse files Browse the repository at this point in the history
  • Loading branch information
fern-api[bot] committed Apr 22, 2024
1 parent 4bc0acc commit cad196b
Show file tree
Hide file tree
Showing 4 changed files with 9 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.32"
version = "v0.2.33"
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.32",
"X-Fern-SDK-Version": "v0.2.33",
}
token = self._get_token()
if token is not None:
Expand Down
4 changes: 4 additions & 0 deletions src/superagent/types/llm_provider.py
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,7 @@ class LlmProvider(str, enum.Enum):
BEDROCK = "BEDROCK"
GROQ = "GROQ"
MISTRAL = "MISTRAL"
COHERE_CHAT = "COHERE_CHAT"

def visit(
self,
Expand All @@ -32,6 +33,7 @@ def visit(
bedrock: typing.Callable[[], T_Result],
groq: typing.Callable[[], T_Result],
mistral: typing.Callable[[], T_Result],
cohere_chat: typing.Callable[[], T_Result],
) -> T_Result:
if self is LlmProvider.OPENAI:
return openai()
Expand All @@ -51,3 +53,5 @@ def visit(
return groq()
if self is LlmProvider.MISTRAL:
return mistral()
if self is LlmProvider.COHERE_CHAT:
return cohere_chat()

0 comments on commit cad196b

Please sign in to comment.