Skip to content

Commit

Permalink
Release v0.2.16
Browse files Browse the repository at this point in the history
  • Loading branch information
fern-api[bot] committed Mar 6, 2024
1 parent c99af11 commit 869b3b4
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 2 deletions.
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.13"
version = "v0.2.16"
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 @@ -14,7 +14,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.13",
"X-Fern-SDK-Version": "v0.2.16",
}
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 @@ -16,6 +16,7 @@ class LlmProvider(str, enum.Enum):
HUGGINGFACE = "HUGGINGFACE"
PERPLEXITY = "PERPLEXITY"
TOGETHER_AI = "TOGETHER_AI"
ANTHROPIC = "ANTHROPIC"

def visit(
self,
Expand All @@ -24,6 +25,7 @@ def visit(
huggingface: typing.Callable[[], T_Result],
perplexity: typing.Callable[[], T_Result],
together_ai: typing.Callable[[], T_Result],
anthropic: typing.Callable[[], T_Result],
) -> T_Result:
if self is LlmProvider.OPENAI:
return openai()
Expand All @@ -35,3 +37,5 @@ def visit(
return perplexity()
if self is LlmProvider.TOGETHER_AI:
return together_ai()
if self is LlmProvider.ANTHROPIC:
return anthropic()

0 comments on commit 869b3b4

Please sign in to comment.