diff --git a/pyproject.toml b/pyproject.toml index 75c3060..67bb25d 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -1,6 +1,6 @@ [tool.poetry] name = "superagent-py" -version = "v0.2.36" +version = "v0.2.39" description = "" readme = "README.md" authors = [] diff --git a/src/superagent/core/client_wrapper.py b/src/superagent/core/client_wrapper.py index ef4ac1b..5d21b05 100644 --- a/src/superagent/core/client_wrapper.py +++ b/src/superagent/core/client_wrapper.py @@ -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: diff --git a/src/superagent/types/llm_model.py b/src/superagent/types/llm_model.py index 51b977f..fd3592e 100644 --- a/src/superagent/types/llm_model.py +++ b/src/superagent/types/llm_model.py @@ -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" @@ -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: @@ -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: