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

Function sync

trainer/src/api_client/api/default/get_training_info.py:83–104  ·  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

81
82
83def sync(
84 *,
85 client: AuthenticatedClient,
86 fine_tune_id: str,
87) -> Optional[GetTrainingInfoResponse200]:
88 """Get info necessary to train a model
89
90 Args:
91 fine_tune_id (str):
92
93 Raises:
94 errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True.
95 httpx.TimeoutException: If the request takes longer than Client.timeout.
96
97 Returns:
98 GetTrainingInfoResponse200
99 """
100
101 return sync_detailed(
102 client=client,
103 fine_tune_id=fine_tune_id,
104 ).parsed
105
106
107async def asyncio_detailed(

Callers

nothing calls this directly

Calls 1

sync_detailedFunction · 0.70

Tested by

no test coverage detected