Skip to content

Commit

Permalink
Release v0.2.39
Browse files Browse the repository at this point in the history
  • Loading branch information
fern-api[bot] committed May 14, 2024
1 parent 2acd903 commit 72e18a8
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.36"
version = "v0.2.39"
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.36",
"X-Fern-SDK-Version": "v0.2.39",
}
token = self._get_token()
if token is not None:
Expand Down
4 changes: 4 additions & 0 deletions src/superagent/types/llm_model.py
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,7 @@ class LlmModel(str, enum.Enum):
GPT_4_TURBO = "GPT_4_TURBO"
GPT_4_TURBO_PREVIEW = "GPT_4_TURBO_PREVIEW"
GPT_4_TURBO_2024_04_09 = "GPT_4_TURBO_2024_04_09"
GPT_4_0 = "GPT_4_0"
MISTRAL_7_B_INSTRUCT_V_01 = "MISTRAL_7B_INSTRUCT_V01"
MIXTRAL_8_X_7_B_INSTRUCT_V_01 = "MIXTRAL_8X7B_INSTRUCT_V01"

Expand All @@ -44,6 +45,7 @@ def visit(
gpt_4_turbo: typing.Callable[[], T_Result],
gpt_4_turbo_preview: typing.Callable[[], T_Result],
gpt_4_turbo_2024_04_09: typing.Callable[[], T_Result],
gpt_4_0: typing.Callable[[], T_Result],
mistral_7_b_instruct_v_01: typing.Callable[[], T_Result],
mixtral_8_x_7_b_instruct_v_01: typing.Callable[[], T_Result],
) -> T_Result:
Expand Down Expand Up @@ -75,6 +77,8 @@ def visit(
return gpt_4_turbo_preview()
if self is LlmModel.GPT_4_TURBO_2024_04_09:
return gpt_4_turbo_2024_04_09()
if self is LlmModel.GPT_4_0:
return gpt_4_0()
if self is LlmModel.MISTRAL_7_B_INSTRUCT_V_01:
return mistral_7_b_instruct_v_01()
if self is LlmModel.MIXTRAL_8_X_7_B_INSTRUCT_V_01:
Expand Down

0 comments on commit 72e18a8

Please sign in to comment.