Skip to content

Commit dcd81d8

Browse files
SDK regeneration (#747)
Co-authored-by: fern-api[bot] <115122769+fern-api[bot]@users.noreply.github.com>
1 parent 7eda2dc commit dcd81d8

7 files changed

Lines changed: 16 additions & 64 deletions

File tree

.fern/metadata.json

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
{
2-
"cliVersion": "4.23.0",
2+
"cliVersion": "4.48.0",
33
"generatorName": "fernapi/fern-python-sdk",
44
"generatorVersion": "4.63.4",
55
"generatorConfig": {
@@ -79,6 +79,6 @@
7979
}
8080
]
8181
},
82-
"originGitCommit": "7ffcb80a5edaf952524b88ad8960151e148ff39b",
83-
"sdkVersion": "5.21.1"
82+
"originGitCommit": "40f3fd11b9fd6b445b024a2fcf6f2e67f6181147",
83+
"sdkVersion": "5.21.2"
8484
}

poetry.lock

Lines changed: 4 additions & 4 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

pyproject.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ dynamic = ["version"]
44

55
[tool.poetry]
66
name = "cohere"
7-
version = "5.21.1"
7+
version = "5.21.2"
88
description = ""
99
readme = "README.md"
1010
authors = []

reference.md

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -5505,14 +5505,6 @@ client.finetuning.update_finetuned_model(
55055505
<dl>
55065506
<dd>
55075507

5508-
**status:** `typing.Optional[Status]` — Current stage in the life-cycle of the fine-tuned model.
5509-
5510-
</dd>
5511-
</dl>
5512-
5513-
<dl>
5514-
<dd>
5515-
55165508
**request_options:** `typing.Optional[RequestOptions]` — Request-specific configuration.
55175509

55185510
</dd>

src/cohere/core/client_wrapper.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -29,12 +29,12 @@ def get_headers(self) -> typing.Dict[str, str]:
2929
import platform
3030

3131
headers: typing.Dict[str, str] = {
32-
"User-Agent": "cohere/5.21.1",
32+
"User-Agent": "cohere/5.21.2",
3333
"X-Fern-Language": "Python",
3434
"X-Fern-Runtime": f"python/{platform.python_version()}",
3535
"X-Fern-Platform": f"{platform.system().lower()}/{platform.release()}",
3636
"X-Fern-SDK-Name": "cohere",
37-
"X-Fern-SDK-Version": "5.21.1",
37+
"X-Fern-SDK-Version": "5.21.2",
3838
**(self.get_custom_headers() or {}),
3939
}
4040
if self._client_name is not None:

src/cohere/finetuning/client.py

Lines changed: 4 additions & 23 deletions
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,6 @@
1212
from .finetuning.types.list_finetuned_models_response import ListFinetunedModelsResponse
1313
from .finetuning.types.list_training_step_metrics_response import ListTrainingStepMetricsResponse
1414
from .finetuning.types.settings import Settings
15-
from .finetuning.types.status import Status
1615
from .finetuning.types.update_finetuned_model_response import UpdateFinetunedModelResponse
1716
from .raw_client import AsyncRawFinetuningClient, RawFinetuningClient
1817

@@ -202,13 +201,7 @@ def delete_finetuned_model(
202201
return _response.data
203202

204203
def update_finetuned_model(
205-
self,
206-
id: str,
207-
*,
208-
name: str,
209-
settings: Settings,
210-
status: typing.Optional[Status] = OMIT,
211-
request_options: typing.Optional[RequestOptions] = None,
204+
self, id: str, *, name: str, settings: Settings, request_options: typing.Optional[RequestOptions] = None
212205
) -> UpdateFinetunedModelResponse:
213206
"""
214207
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(
224217
settings : Settings
225218
FinetunedModel settings such as dataset, hyperparameters...
226219
227-
status : typing.Optional[Status]
228-
Current stage in the life-cycle of the fine-tuned model.
229-
230220
request_options : typing.Optional[RequestOptions]
231221
Request-specific configuration.
232222
@@ -256,7 +246,7 @@ def update_finetuned_model(
256246
)
257247
"""
258248
_response = self._raw_client.update_finetuned_model(
259-
id, name=name, settings=settings, status=status, request_options=request_options
249+
id, name=name, settings=settings, request_options=request_options
260250
)
261251
return _response.data
262252

@@ -593,13 +583,7 @@ async def main() -> None:
593583
return _response.data
594584

595585
async def update_finetuned_model(
596-
self,
597-
id: str,
598-
*,
599-
name: str,
600-
settings: Settings,
601-
status: typing.Optional[Status] = OMIT,
602-
request_options: typing.Optional[RequestOptions] = None,
586+
self, id: str, *, name: str, settings: Settings, request_options: typing.Optional[RequestOptions] = None
603587
) -> UpdateFinetunedModelResponse:
604588
"""
605589
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(
615599
settings : Settings
616600
FinetunedModel settings such as dataset, hyperparameters...
617601
618-
status : typing.Optional[Status]
619-
Current stage in the life-cycle of the fine-tuned model.
620-
621602
request_options : typing.Optional[RequestOptions]
622603
Request-specific configuration.
623604
@@ -655,7 +636,7 @@ async def main() -> None:
655636
asyncio.run(main())
656637
"""
657638
_response = await self._raw_client.update_finetuned_model(
658-
id, name=name, settings=settings, status=status, request_options=request_options
639+
id, name=name, settings=settings, request_options=request_options
659640
)
660641
return _response.data
661642

src/cohere/finetuning/raw_client.py

Lines changed: 2 additions & 23 deletions
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,6 @@
2525
from .finetuning.types.list_finetuned_models_response import ListFinetunedModelsResponse
2626
from .finetuning.types.list_training_step_metrics_response import ListTrainingStepMetricsResponse
2727
from .finetuning.types.settings import Settings
28-
from .finetuning.types.status import Status
2928
from .finetuning.types.update_finetuned_model_response import UpdateFinetunedModelResponse
3029
from pydantic import ValidationError
3130

@@ -501,13 +500,7 @@ def delete_finetuned_model(
501500
raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response_json)
502501

503502
def update_finetuned_model(
504-
self,
505-
id: str,
506-
*,
507-
name: str,
508-
settings: Settings,
509-
status: typing.Optional[Status] = OMIT,
510-
request_options: typing.Optional[RequestOptions] = None,
503+
self, id: str, *, name: str, settings: Settings, request_options: typing.Optional[RequestOptions] = None
511504
) -> HttpResponse[UpdateFinetunedModelResponse]:
512505
"""
513506
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(
523516
settings : Settings
524517
FinetunedModel settings such as dataset, hyperparameters...
525518
526-
status : typing.Optional[Status]
527-
Current stage in the life-cycle of the fine-tuned model.
528-
529519
request_options : typing.Optional[RequestOptions]
530520
Request-specific configuration.
531521
@@ -542,7 +532,6 @@ def update_finetuned_model(
542532
"settings": convert_and_respect_annotation_metadata(
543533
object_=settings, annotation=Settings, direction="write"
544534
),
545-
"status": status,
546535
},
547536
headers={
548537
"content-type": "application/json",
@@ -1368,13 +1357,7 @@ async def delete_finetuned_model(
13681357
raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response_json)
13691358

13701359
async def update_finetuned_model(
1371-
self,
1372-
id: str,
1373-
*,
1374-
name: str,
1375-
settings: Settings,
1376-
status: typing.Optional[Status] = OMIT,
1377-
request_options: typing.Optional[RequestOptions] = None,
1360+
self, id: str, *, name: str, settings: Settings, request_options: typing.Optional[RequestOptions] = None
13781361
) -> AsyncHttpResponse[UpdateFinetunedModelResponse]:
13791362
"""
13801363
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(
13901373
settings : Settings
13911374
FinetunedModel settings such as dataset, hyperparameters...
13921375
1393-
status : typing.Optional[Status]
1394-
Current stage in the life-cycle of the fine-tuned model.
1395-
13961376
request_options : typing.Optional[RequestOptions]
13971377
Request-specific configuration.
13981378
@@ -1409,7 +1389,6 @@ async def update_finetuned_model(
14091389
"settings": convert_and_respect_annotation_metadata(
14101390
object_=settings, annotation=Settings, direction="write"
14111391
),
1412-
"status": status,
14131392
},
14141393
headers={
14151394
"content-type": "application/json",

0 commit comments

Comments
 (0)