Skip to content

Commit 2acd903

Browse files
committed
Release v0.2.36
1 parent e774051 commit 2acd903

File tree

3 files changed

+26
-2
lines changed

3 files changed

+26
-2
lines changed

pyproject.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
[tool.poetry]
22
name = "superagent-py"
3-
version = "v0.2.35"
3+
version = "v0.2.36"
44
description = ""
55
readme = "README.md"
66
authors = []

src/superagent/core/client_wrapper.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ def get_headers(self) -> typing.Dict[str, str]:
1616
headers: typing.Dict[str, str] = {
1717
"X-Fern-Language": "Python",
1818
"X-Fern-SDK-Name": "superagent-py",
19-
"X-Fern-SDK-Version": "v0.2.35",
19+
"X-Fern-SDK-Version": "v0.2.36",
2020
}
2121
token = self._get_token()
2222
if token is not None:

src/superagent/types/llm_model.py

Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,30 +11,44 @@ class LlmModel(str, enum.Enum):
1111
An enumeration.
1212
"""
1313

14+
GPT_3_5_TURBO = "GPT_3_5_TURBO"
1415
GPT_3_5_TURBO_16_K_0613 = "GPT_3_5_TURBO_16K_0613"
1516
GPT_3_5_TURBO_0613 = "GPT_3_5_TURBO_0613"
1617
GPT_3_5_TURBO_1106 = "GPT_3_5_TURBO_1106"
1718
GPT_3_5_TURBO_0125 = "GPT_3_5_TURBO_0125"
19+
GPT_4 = "GPT_4"
1820
GPT_4_0613 = "GPT_4_0613"
21+
GPT_4_32_K = "GPT_4_32K"
1922
GPT_4_32_K_0613 = "GPT_4_32K_0613"
2023
GPT_4_1106_PREVIEW = "GPT_4_1106_PREVIEW"
24+
GPT_4_0125_PREVIEW = "GPT_4_0125_PREVIEW"
25+
GPT_4_TURBO = "GPT_4_TURBO"
2126
GPT_4_TURBO_PREVIEW = "GPT_4_TURBO_PREVIEW"
27+
GPT_4_TURBO_2024_04_09 = "GPT_4_TURBO_2024_04_09"
2228
MISTRAL_7_B_INSTRUCT_V_01 = "MISTRAL_7B_INSTRUCT_V01"
2329
MIXTRAL_8_X_7_B_INSTRUCT_V_01 = "MIXTRAL_8X7B_INSTRUCT_V01"
2430

2531
def visit(
2632
self,
33+
gpt_3_5_turbo: typing.Callable[[], T_Result],
2734
gpt_3_5_turbo_16_k_0613: typing.Callable[[], T_Result],
2835
gpt_3_5_turbo_0613: typing.Callable[[], T_Result],
2936
gpt_3_5_turbo_1106: typing.Callable[[], T_Result],
3037
gpt_3_5_turbo_0125: typing.Callable[[], T_Result],
38+
gpt_4: typing.Callable[[], T_Result],
3139
gpt_4_0613: typing.Callable[[], T_Result],
40+
gpt_4_32_k: typing.Callable[[], T_Result],
3241
gpt_4_32_k_0613: typing.Callable[[], T_Result],
3342
gpt_4_1106_preview: typing.Callable[[], T_Result],
43+
gpt_4_0125_preview: typing.Callable[[], T_Result],
44+
gpt_4_turbo: typing.Callable[[], T_Result],
3445
gpt_4_turbo_preview: typing.Callable[[], T_Result],
46+
gpt_4_turbo_2024_04_09: typing.Callable[[], T_Result],
3547
mistral_7_b_instruct_v_01: typing.Callable[[], T_Result],
3648
mixtral_8_x_7_b_instruct_v_01: typing.Callable[[], T_Result],
3749
) -> T_Result:
50+
if self is LlmModel.GPT_3_5_TURBO:
51+
return gpt_3_5_turbo()
3852
if self is LlmModel.GPT_3_5_TURBO_16_K_0613:
3953
return gpt_3_5_turbo_16_k_0613()
4054
if self is LlmModel.GPT_3_5_TURBO_0613:
@@ -43,14 +57,24 @@ def visit(
4357
return gpt_3_5_turbo_1106()
4458
if self is LlmModel.GPT_3_5_TURBO_0125:
4559
return gpt_3_5_turbo_0125()
60+
if self is LlmModel.GPT_4:
61+
return gpt_4()
4662
if self is LlmModel.GPT_4_0613:
4763
return gpt_4_0613()
64+
if self is LlmModel.GPT_4_32_K:
65+
return gpt_4_32_k()
4866
if self is LlmModel.GPT_4_32_K_0613:
4967
return gpt_4_32_k_0613()
5068
if self is LlmModel.GPT_4_1106_PREVIEW:
5169
return gpt_4_1106_preview()
70+
if self is LlmModel.GPT_4_0125_PREVIEW:
71+
return gpt_4_0125_preview()
72+
if self is LlmModel.GPT_4_TURBO:
73+
return gpt_4_turbo()
5274
if self is LlmModel.GPT_4_TURBO_PREVIEW:
5375
return gpt_4_turbo_preview()
76+
if self is LlmModel.GPT_4_TURBO_2024_04_09:
77+
return gpt_4_turbo_2024_04_09()
5478
if self is LlmModel.MISTRAL_7_B_INSTRUCT_V_01:
5579
return mistral_7_b_instruct_v_01()
5680
if self is LlmModel.MIXTRAL_8_X_7_B_INSTRUCT_V_01:

0 commit comments

Comments
 (0)