MCPcopy Create free account
hub / github.com/OpenPipe/OpenPipe / sync_detailed

Function sync_detailed

trainer/src/api_client/api/default/get_training_info.py:54–80  ·  view source on GitHub ↗

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,
)

Source from the content-addressed store, hash-verified

52
53
54def 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
83def sync(

Callers 1

syncFunction · 0.70

Calls 4

_get_kwargsFunction · 0.70
_build_responseFunction · 0.70
requestMethod · 0.45
get_httpx_clientMethod · 0.45

Tested by

no test coverage detected