Get info necessary to train a model Args: fine_tune_id (str): Raises: errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True. httpx.TimeoutException: If the request takes longer than Client.timeout.
(
*,
client: AuthenticatedClient,
fine_tune_id: str,
)
| 52 | |
| 53 | |
| 54 | def sync_detailed( |
| 55 | *, |
| 56 | client: AuthenticatedClient, |
| 57 | fine_tune_id: str, |
| 58 | ) -> Response[GetTrainingInfoResponse200]: |
| 59 | """Get info necessary to train a model |
| 60 | |
| 61 | Args: |
| 62 | fine_tune_id (str): |
| 63 | |
| 64 | Raises: |
| 65 | errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True. |
| 66 | httpx.TimeoutException: If the request takes longer than Client.timeout. |
| 67 | |
| 68 | Returns: |
| 69 | Response[GetTrainingInfoResponse200] |
| 70 | """ |
| 71 | |
| 72 | kwargs = _get_kwargs( |
| 73 | fine_tune_id=fine_tune_id, |
| 74 | ) |
| 75 | |
| 76 | response = client.get_httpx_client().request( |
| 77 | **kwargs, |
| 78 | ) |
| 79 | |
| 80 | return _build_response(client=client, response=response) |
| 81 | |
| 82 | |
| 83 | def sync( |
no test coverage detected