File tree Expand file tree Collapse file tree
src/yandex_cloud_ml_sdk/_runs Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -44,7 +44,7 @@ async def _create(
4444 #: Custom temperature value
4545 custom_temperature : UndefinedOr [float ] = UNDEFINED ,
4646 #: Custom max tokens value
47- custom_max_tokens : UndefinedOr [float ] = UNDEFINED ,
47+ custom_max_tokens : UndefinedOr [int ] = UNDEFINED ,
4848 #: Custom max prompt tokens value
4949 custom_max_prompt_tokens : UndefinedOr [int ] = UNDEFINED ,
5050 #: Custom truncation strategy
@@ -101,7 +101,7 @@ async def _create(
101101 stream = stream ,
102102 )
103103
104- async with self ._client .get_service_stub (RRunServiceStub , timeout = timeout ) as stub :
104+ async with self ._client .get_service_stub (RunServiceStub , timeout = timeout ) as stub :
105105 response = await self ._client .call_service (
106106 stub .Create ,
107107 request ,
@@ -117,6 +117,8 @@ async def _get(
117117 * ,
118118 timeout : float = 60 ,
119119 ) -> RunTypeT :
120+ # TODO: we need a global per-sdk cache on ids to rule out
121+ # possibility we have two Runs with same ids but different fields
120122 """
121123 Get a run by ID.
122124
Original file line number Diff line number Diff line change 1212
1313# pylint: disable=abstract-method
1414class BaseRunStatus (BaseOperationStatus ):
15+ pass
1516 """
1617 Base class for run status enumerations.
1718 """
You can’t perform that action at this time.
0 commit comments