diff --git a/.fern/metadata.json b/.fern/metadata.json
index edf9ae734..33b22ba3a 100644
--- a/.fern/metadata.json
+++ b/.fern/metadata.json
@@ -1,5 +1,5 @@
{
- "cliVersion": "4.23.0",
+ "cliVersion": "4.48.0",
"generatorName": "fernapi/fern-python-sdk",
"generatorVersion": "4.63.4",
"generatorConfig": {
@@ -79,6 +79,6 @@
}
]
},
- "originGitCommit": "7ffcb80a5edaf952524b88ad8960151e148ff39b",
- "sdkVersion": "5.21.1"
+ "originGitCommit": "40f3fd11b9fd6b445b024a2fcf6f2e67f6181147",
+ "sdkVersion": "5.21.2"
}
\ No newline at end of file
diff --git a/poetry.lock b/poetry.lock
index b4f355168..f327ace38 100644
--- a/poetry.lock
+++ b/poetry.lock
@@ -804,13 +804,13 @@ typing-extensions = ">=4.14.1"
[[package]]
name = "pygments"
-version = "2.19.2"
+version = "2.20.0"
description = "Pygments is a syntax highlighting package written in Python."
optional = false
-python-versions = ">=3.8"
+python-versions = ">=3.9"
files = [
- {file = "pygments-2.19.2-py3-none-any.whl", hash = "sha256:86540386c03d588bb81d44bc3928634ff26449851e99741617ecb9037ee5ec0b"},
- {file = "pygments-2.19.2.tar.gz", hash = "sha256:636cb2477cec7f8952536970bc533bc43743542f70392ae026374600add5b887"},
+ {file = "pygments-2.20.0-py3-none-any.whl", hash = "sha256:81a9e26dd42fd28a23a2d169d86d7ac03b46e2f8b59ed4698fb4785f946d0176"},
+ {file = "pygments-2.20.0.tar.gz", hash = "sha256:6757cd03768053ff99f3039c1a36d6c0aa0b263438fcab17520b30a303a82b5f"},
]
[package.extras]
diff --git a/pyproject.toml b/pyproject.toml
index 6a83e8921..8abcedd7f 100644
--- a/pyproject.toml
+++ b/pyproject.toml
@@ -4,7 +4,7 @@ dynamic = ["version"]
[tool.poetry]
name = "cohere"
-version = "5.21.1"
+version = "5.21.2"
description = ""
readme = "README.md"
authors = []
diff --git a/reference.md b/reference.md
index 56ae66ede..8adee9e9e 100644
--- a/reference.md
+++ b/reference.md
@@ -5505,14 +5505,6 @@ client.finetuning.update_finetuned_model(
-
-**status:** `typing.Optional[Status]` — Current stage in the life-cycle of the fine-tuned model.
-
-
-
-
-
--
-
**request_options:** `typing.Optional[RequestOptions]` — Request-specific configuration.
diff --git a/src/cohere/core/client_wrapper.py b/src/cohere/core/client_wrapper.py
index 55f14166d..1a0ae0e86 100644
--- a/src/cohere/core/client_wrapper.py
+++ b/src/cohere/core/client_wrapper.py
@@ -29,12 +29,12 @@ def get_headers(self) -> typing.Dict[str, str]:
import platform
headers: typing.Dict[str, str] = {
- "User-Agent": "cohere/5.21.1",
+ "User-Agent": "cohere/5.21.2",
"X-Fern-Language": "Python",
"X-Fern-Runtime": f"python/{platform.python_version()}",
"X-Fern-Platform": f"{platform.system().lower()}/{platform.release()}",
"X-Fern-SDK-Name": "cohere",
- "X-Fern-SDK-Version": "5.21.1",
+ "X-Fern-SDK-Version": "5.21.2",
**(self.get_custom_headers() or {}),
}
if self._client_name is not None:
diff --git a/src/cohere/finetuning/client.py b/src/cohere/finetuning/client.py
index 4a128ccbe..09d09897d 100644
--- a/src/cohere/finetuning/client.py
+++ b/src/cohere/finetuning/client.py
@@ -12,7 +12,6 @@
from .finetuning.types.list_finetuned_models_response import ListFinetunedModelsResponse
from .finetuning.types.list_training_step_metrics_response import ListTrainingStepMetricsResponse
from .finetuning.types.settings import Settings
-from .finetuning.types.status import Status
from .finetuning.types.update_finetuned_model_response import UpdateFinetunedModelResponse
from .raw_client import AsyncRawFinetuningClient, RawFinetuningClient
@@ -202,13 +201,7 @@ def delete_finetuned_model(
return _response.data
def update_finetuned_model(
- self,
- id: str,
- *,
- name: str,
- settings: Settings,
- status: typing.Optional[Status] = OMIT,
- request_options: typing.Optional[RequestOptions] = None,
+ self, id: str, *, name: str, settings: Settings, request_options: typing.Optional[RequestOptions] = None
) -> UpdateFinetunedModelResponse:
"""
Updates the fine-tuned model with the given ID. The model will be updated with the new settings and name provided in the request body.
@@ -224,9 +217,6 @@ def update_finetuned_model(
settings : Settings
FinetunedModel settings such as dataset, hyperparameters...
- status : typing.Optional[Status]
- Current stage in the life-cycle of the fine-tuned model.
-
request_options : typing.Optional[RequestOptions]
Request-specific configuration.
@@ -256,7 +246,7 @@ def update_finetuned_model(
)
"""
_response = self._raw_client.update_finetuned_model(
- id, name=name, settings=settings, status=status, request_options=request_options
+ id, name=name, settings=settings, request_options=request_options
)
return _response.data
@@ -593,13 +583,7 @@ async def main() -> None:
return _response.data
async def update_finetuned_model(
- self,
- id: str,
- *,
- name: str,
- settings: Settings,
- status: typing.Optional[Status] = OMIT,
- request_options: typing.Optional[RequestOptions] = None,
+ self, id: str, *, name: str, settings: Settings, request_options: typing.Optional[RequestOptions] = None
) -> UpdateFinetunedModelResponse:
"""
Updates the fine-tuned model with the given ID. The model will be updated with the new settings and name provided in the request body.
@@ -615,9 +599,6 @@ async def update_finetuned_model(
settings : Settings
FinetunedModel settings such as dataset, hyperparameters...
- status : typing.Optional[Status]
- Current stage in the life-cycle of the fine-tuned model.
-
request_options : typing.Optional[RequestOptions]
Request-specific configuration.
@@ -655,7 +636,7 @@ async def main() -> None:
asyncio.run(main())
"""
_response = await self._raw_client.update_finetuned_model(
- id, name=name, settings=settings, status=status, request_options=request_options
+ id, name=name, settings=settings, request_options=request_options
)
return _response.data
diff --git a/src/cohere/finetuning/raw_client.py b/src/cohere/finetuning/raw_client.py
index ca8b876f7..7bde9cc79 100644
--- a/src/cohere/finetuning/raw_client.py
+++ b/src/cohere/finetuning/raw_client.py
@@ -25,7 +25,6 @@
from .finetuning.types.list_finetuned_models_response import ListFinetunedModelsResponse
from .finetuning.types.list_training_step_metrics_response import ListTrainingStepMetricsResponse
from .finetuning.types.settings import Settings
-from .finetuning.types.status import Status
from .finetuning.types.update_finetuned_model_response import UpdateFinetunedModelResponse
from pydantic import ValidationError
@@ -501,13 +500,7 @@ def delete_finetuned_model(
raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response_json)
def update_finetuned_model(
- self,
- id: str,
- *,
- name: str,
- settings: Settings,
- status: typing.Optional[Status] = OMIT,
- request_options: typing.Optional[RequestOptions] = None,
+ self, id: str, *, name: str, settings: Settings, request_options: typing.Optional[RequestOptions] = None
) -> HttpResponse[UpdateFinetunedModelResponse]:
"""
Updates the fine-tuned model with the given ID. The model will be updated with the new settings and name provided in the request body.
@@ -523,9 +516,6 @@ def update_finetuned_model(
settings : Settings
FinetunedModel settings such as dataset, hyperparameters...
- status : typing.Optional[Status]
- Current stage in the life-cycle of the fine-tuned model.
-
request_options : typing.Optional[RequestOptions]
Request-specific configuration.
@@ -542,7 +532,6 @@ def update_finetuned_model(
"settings": convert_and_respect_annotation_metadata(
object_=settings, annotation=Settings, direction="write"
),
- "status": status,
},
headers={
"content-type": "application/json",
@@ -1368,13 +1357,7 @@ async def delete_finetuned_model(
raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response_json)
async def update_finetuned_model(
- self,
- id: str,
- *,
- name: str,
- settings: Settings,
- status: typing.Optional[Status] = OMIT,
- request_options: typing.Optional[RequestOptions] = None,
+ self, id: str, *, name: str, settings: Settings, request_options: typing.Optional[RequestOptions] = None
) -> AsyncHttpResponse[UpdateFinetunedModelResponse]:
"""
Updates the fine-tuned model with the given ID. The model will be updated with the new settings and name provided in the request body.
@@ -1390,9 +1373,6 @@ async def update_finetuned_model(
settings : Settings
FinetunedModel settings such as dataset, hyperparameters...
- status : typing.Optional[Status]
- Current stage in the life-cycle of the fine-tuned model.
-
request_options : typing.Optional[RequestOptions]
Request-specific configuration.
@@ -1409,7 +1389,6 @@ async def update_finetuned_model(
"settings": convert_and_respect_annotation_metadata(
object_=settings, annotation=Settings, direction="write"
),
- "status": status,
},
headers={
"content-type": "application/json",