Skip to content

Commit 246c547

Browse files
committed
Sync updates from stainless branch: main
1 parent 0f5c50d commit 246c547

14 files changed

+42
-101
lines changed

src/llama_stack_client/resources/post_training/job.py

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22

33
from __future__ import annotations
44

5-
from typing import Type, Optional, cast
5+
from typing import List, Type, Optional, cast
66

77
import httpx
88

@@ -22,7 +22,7 @@
2222
from ..._wrappers import DataWrapper
2323
from ..._base_client import make_request_options
2424
from ...types.post_training import job_cancel_params, job_status_params, job_artifacts_params
25-
from ...types.post_training.job_list_response import JobListResponse
25+
from ...types.list_post_training_jobs_response import Data
2626
from ...types.post_training.job_status_response import JobStatusResponse
2727
from ...types.post_training.job_artifacts_response import JobArtifactsResponse
2828

@@ -58,17 +58,17 @@ def list(
5858
extra_query: Query | None = None,
5959
extra_body: Body | None = None,
6060
timeout: float | httpx.Timeout | None | NotGiven = NOT_GIVEN,
61-
) -> JobListResponse:
61+
) -> List[Data]:
6262
return self._get(
6363
"/v1/post-training/jobs",
6464
options=make_request_options(
6565
extra_headers=extra_headers,
6666
extra_query=extra_query,
6767
extra_body=extra_body,
6868
timeout=timeout,
69-
post_parser=DataWrapper[JobListResponse]._unwrapper,
69+
post_parser=DataWrapper[List[Data]]._unwrapper,
7070
),
71-
cast_to=cast(Type[JobListResponse], DataWrapper[JobListResponse]),
71+
cast_to=cast(Type[List[Data]], DataWrapper[Data]),
7272
)
7373

7474
def artifacts(
@@ -198,17 +198,17 @@ async def list(
198198
extra_query: Query | None = None,
199199
extra_body: Body | None = None,
200200
timeout: float | httpx.Timeout | None | NotGiven = NOT_GIVEN,
201-
) -> JobListResponse:
201+
) -> List[Data]:
202202
return await self._get(
203203
"/v1/post-training/jobs",
204204
options=make_request_options(
205205
extra_headers=extra_headers,
206206
extra_query=extra_query,
207207
extra_body=extra_body,
208208
timeout=timeout,
209-
post_parser=DataWrapper[JobListResponse]._unwrapper,
209+
post_parser=DataWrapper[List[Data]]._unwrapper,
210210
),
211-
cast_to=cast(Type[JobListResponse], DataWrapper[JobListResponse]),
211+
cast_to=cast(Type[List[Data]], DataWrapper[Data]),
212212
)
213213

214214
async def artifacts(

src/llama_stack_client/types/inference_step.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@
1313

1414

1515
class InferenceStep(BaseModel):
16-
inference_model_response: CompletionMessage = FieldInfo(alias="model_response")
16+
api_model_response: CompletionMessage = FieldInfo(alias="model_response")
1717

1818
step_id: str
1919

Lines changed: 3 additions & 22 deletions
Original file line numberDiff line numberDiff line change
@@ -1,30 +1,11 @@
11
# File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
22

3-
from typing import Dict, List, Union
4-
from typing_extensions import Literal
53

64
from .._models import BaseModel
7-
from .shared.url import URL
8-
from .shared.param_type import ParamType
5+
from .dataset_list_response import DatasetListResponse
96

10-
__all__ = ["ListDatasetsResponse", "Data"]
11-
12-
13-
class Data(BaseModel):
14-
dataset_schema: Dict[str, ParamType]
15-
16-
identifier: str
17-
18-
metadata: Dict[str, Union[bool, float, str, List[object], object, None]]
19-
20-
provider_id: str
21-
22-
provider_resource_id: str
23-
24-
type: Literal["dataset"]
25-
26-
url: URL
7+
__all__ = ["ListDatasetsResponse"]
278

289

2910
class ListDatasetsResponse(BaseModel):
30-
data: List[Data]
11+
data: DatasetListResponse
Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,11 @@
11
# File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
22

3-
from typing import List
43

54
from .._models import BaseModel
6-
from .eval_task import EvalTask
5+
from .eval_task_list_response import EvalTaskListResponse
76

87
__all__ = ["ListEvalTasksResponse"]
98

109

1110
class ListEvalTasksResponse(BaseModel):
12-
data: List[EvalTask]
11+
data: EvalTaskListResponse
Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,11 @@
11
# File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
22

3-
from typing import List
43

5-
from .model import Model
64
from .._models import BaseModel
5+
from .model_list_response import ModelListResponse
76

87
__all__ = ["ListModelsResponse"]
98

109

1110
class ListModelsResponse(BaseModel):
12-
data: List[Model]
11+
data: ModelListResponse
Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,11 @@
11
# File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
22

3-
from typing import List
43

54
from .._models import BaseModel
6-
from .provider_info import ProviderInfo
5+
from .provider_list_response import ProviderListResponse
76

87
__all__ = ["ListProvidersResponse"]
98

109

1110
class ListProvidersResponse(BaseModel):
12-
data: List[ProviderInfo]
11+
data: ProviderListResponse
Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,11 @@
11
# File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
22

3-
from typing import List
43

54
from .._models import BaseModel
6-
from .route_info import RouteInfo
5+
from .route_list_response import RouteListResponse
76

87
__all__ = ["ListRoutesResponse"]
98

109

1110
class ListRoutesResponse(BaseModel):
12-
data: List[RouteInfo]
11+
data: RouteListResponse
Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,11 @@
11
# File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
22

3-
from typing import List
43

54
from .._models import BaseModel
6-
from .scoring_fn import ScoringFn
5+
from .scoring_function_list_response import ScoringFunctionListResponse
76

87
__all__ = ["ListScoringFunctionsResponse"]
98

109

1110
class ListScoringFunctionsResponse(BaseModel):
12-
data: List[ScoringFn]
11+
data: ScoringFunctionListResponse
Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,11 @@
11
# File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
22

3-
from typing import List
43

5-
from .shield import Shield
64
from .._models import BaseModel
5+
from .shield_list_response import ShieldListResponse
76

87
__all__ = ["ListShieldsResponse"]
98

109

1110
class ListShieldsResponse(BaseModel):
12-
data: List[Shield]
11+
data: ShieldListResponse
Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,11 @@
11
# File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
22

3-
from typing import List
43

54
from .._models import BaseModel
6-
from .tool_group import ToolGroup
5+
from .toolgroup_list_response import ToolgroupListResponse
76

87
__all__ = ["ListToolGroupsResponse"]
98

109

1110
class ListToolGroupsResponse(BaseModel):
12-
data: List[ToolGroup]
11+
data: ToolgroupListResponse

0 commit comments

Comments
 (0)