Skip to content

Commit a6e2c6e

Browse files
committed
fix errors
1 parent 28b7b0f commit a6e2c6e

2 files changed

Lines changed: 5 additions & 2 deletions

File tree

src/yandex_cloud_ml_sdk/_runs/domain.py

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff 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

src/yandex_cloud_ml_sdk/_runs/status.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,7 @@
1212

1313
# pylint: disable=abstract-method
1414
class BaseRunStatus(BaseOperationStatus):
15+
pass
1516
"""
1617
Base class for run status enumerations.
1718
"""

0 commit comments

Comments
 (0)