Skip to content

Commit dbc97a7

Browse files
LLM Fine tune Events api (#135)
* copy autogen client * manually generated stuff
1 parent ec16291 commit dbc97a7

20 files changed

+1924
-16
lines changed

launch/api_client/apis/path_to_api.py

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -39,6 +39,9 @@
3939
from launch.api_client.apis.paths.v1_llm_fine_tunes_fine_tune_id_cancel import (
4040
V1LlmFineTunesFineTuneIdCancel,
4141
)
42+
from launch.api_client.apis.paths.v1_llm_fine_tunes_fine_tune_id_events import (
43+
V1LlmFineTunesFineTuneIdEvents,
44+
)
4245
from launch.api_client.apis.paths.v1_llm_model_endpoints import (
4346
V1LlmModelEndpoints,
4447
)
@@ -99,6 +102,7 @@
99102
PathValues.V1_LLM_FINETUNES: V1LlmFineTunes,
100103
PathValues.V1_LLM_FINETUNES_FINE_TUNE_ID: V1LlmFineTunesFineTuneId,
101104
PathValues.V1_LLM_FINETUNES_FINE_TUNE_ID_CANCEL: V1LlmFineTunesFineTuneIdCancel,
105+
PathValues.V1_LLM_FINETUNES_FINE_TUNE_ID_EVENTS: V1LlmFineTunesFineTuneIdEvents,
102106
PathValues.V1_LLM_MODELENDPOINTS: V1LlmModelEndpoints,
103107
PathValues.V1_LLM_MODELENDPOINTS_MODEL_ENDPOINT_NAME: V1LlmModelEndpointsModelEndpointName,
104108
PathValues.V1_MODELBUNDLES: V1ModelBundles,
@@ -137,6 +141,7 @@
137141
PathValues.V1_LLM_FINETUNES: V1LlmFineTunes,
138142
PathValues.V1_LLM_FINETUNES_FINE_TUNE_ID: V1LlmFineTunesFineTuneId,
139143
PathValues.V1_LLM_FINETUNES_FINE_TUNE_ID_CANCEL: V1LlmFineTunesFineTuneIdCancel,
144+
PathValues.V1_LLM_FINETUNES_FINE_TUNE_ID_EVENTS: V1LlmFineTunesFineTuneIdEvents,
140145
PathValues.V1_LLM_MODELENDPOINTS: V1LlmModelEndpoints,
141146
PathValues.V1_LLM_MODELENDPOINTS_MODEL_ENDPOINT_NAME: V1LlmModelEndpointsModelEndpointName,
142147
PathValues.V1_MODELBUNDLES: V1ModelBundles,
Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
from launch.api_client.paths.v1_llm_fine_tunes_fine_tune_id_events.get import (
2+
ApiForget,
3+
)
4+
5+
6+
class V1LlmFineTunesFineTuneIdEvents(
7+
ApiForget,
8+
):
9+
pass
Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
from launch.api_client.paths.v1_llm_fine_tunes_model_endpoint_name_events.get import (
2+
ApiForget,
3+
)
4+
5+
6+
class V1LlmFineTunesModelEndpointNameEvents(
7+
ApiForget,
8+
):
9+
pass

launch/api_client/apis/tags/default_api.py

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -66,6 +66,9 @@
6666
from launch.api_client.paths.v1_llm_fine_tunes_fine_tune_id_cancel.put import (
6767
CancelFineTuneV1LlmFineTunesFineTuneIdCancelPut,
6868
)
69+
from launch.api_client.paths.v1_llm_fine_tunes_fine_tune_id_events.get import (
70+
GetFineTuneEventsV1LlmFineTunesFineTuneIdEventsGet,
71+
)
6972
from launch.api_client.paths.v1_llm_model_endpoints.get import (
7073
ListModelEndpointsV1LlmModelEndpointsGet,
7174
)
@@ -156,6 +159,7 @@ class DefaultApi(
156159
GetBatchJobV1BatchJobsBatchJobIdGet,
157160
GetDockerImageBatchJobModelBundleV1DockerImageBatchJobBundlesDockerImageBatchJobBundleIdGet,
158161
GetDockerImageBatchJobV1DockerImageBatchJobsBatchJobIdGet,
162+
GetFineTuneEventsV1LlmFineTunesFineTuneIdEventsGet,
159163
GetFineTuneV1LlmFineTunesFineTuneIdGet,
160164
GetLatestDockerImageBatchJobBundleV1DockerImageBatchJobBundlesLatestGet,
161165
GetLatestModelBundleV1ModelBundlesLatestGet,
Lines changed: 138 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,138 @@
1+
# coding: utf-8
2+
3+
"""
4+
launch
5+
6+
No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501
7+
8+
The version of the OpenAPI document: 1.0.0
9+
Generated by: https://openapi-generator.tech
10+
"""
11+
12+
import decimal # noqa: F401
13+
import functools # noqa: F401
14+
import io # noqa: F401
15+
import re # noqa: F401
16+
import typing # noqa: F401
17+
import uuid # noqa: F401
18+
from datetime import date, datetime # noqa: F401
19+
20+
import frozendict # noqa: F401
21+
import typing_extensions # noqa: F401
22+
23+
from launch.api_client import schemas # noqa: F401
24+
25+
26+
class GetFineTuneEventsResponse(schemas.DictSchema):
27+
"""NOTE: This class is auto generated by OpenAPI Generator.
28+
Ref: https://openapi-generator.tech
29+
30+
Do not edit the class manually.
31+
"""
32+
33+
class MetaOapg:
34+
required = {
35+
"events",
36+
}
37+
38+
class properties:
39+
class events(schemas.ListSchema):
40+
class MetaOapg:
41+
@staticmethod
42+
def items() -> typing.Type["LLMFineTuneEvent"]:
43+
return LLMFineTuneEvent
44+
45+
def __new__(
46+
cls,
47+
_arg: typing.Union[typing.Tuple["LLMFineTuneEvent"], typing.List["LLMFineTuneEvent"]],
48+
_configuration: typing.Optional[schemas.Configuration] = None,
49+
) -> "events":
50+
return super().__new__(
51+
cls,
52+
_arg,
53+
_configuration=_configuration,
54+
)
55+
56+
def __getitem__(self, i: int) -> "LLMFineTuneEvent":
57+
return super().__getitem__(i)
58+
59+
__annotations__ = {
60+
"events": events,
61+
}
62+
63+
events: MetaOapg.properties.events
64+
65+
@typing.overload
66+
def __getitem__(self, name: typing_extensions.Literal["events"]) -> MetaOapg.properties.events:
67+
...
68+
69+
@typing.overload
70+
def __getitem__(self, name: str) -> schemas.UnsetAnyTypeSchema:
71+
...
72+
73+
def __getitem__(
74+
self,
75+
name: typing.Union[
76+
typing_extensions.Literal["events",],
77+
str,
78+
],
79+
):
80+
# dict_instance[name] accessor
81+
return super().__getitem__(name)
82+
83+
@typing.overload
84+
def get_item_oapg(self, name: typing_extensions.Literal["events"]) -> MetaOapg.properties.events:
85+
...
86+
87+
@typing.overload
88+
def get_item_oapg(self, name: str) -> typing.Union[schemas.UnsetAnyTypeSchema, schemas.Unset]:
89+
...
90+
91+
def get_item_oapg(
92+
self,
93+
name: typing.Union[
94+
typing_extensions.Literal["events",],
95+
str,
96+
],
97+
):
98+
return super().get_item_oapg(name)
99+
100+
def __new__(
101+
cls,
102+
*_args: typing.Union[
103+
dict,
104+
frozendict.frozendict,
105+
],
106+
events: typing.Union[
107+
MetaOapg.properties.events,
108+
list,
109+
tuple,
110+
],
111+
_configuration: typing.Optional[schemas.Configuration] = None,
112+
**kwargs: typing.Union[
113+
schemas.AnyTypeSchema,
114+
dict,
115+
frozendict.frozendict,
116+
str,
117+
date,
118+
datetime,
119+
uuid.UUID,
120+
int,
121+
float,
122+
decimal.Decimal,
123+
None,
124+
list,
125+
tuple,
126+
bytes,
127+
],
128+
) -> "GetFineTuneEventsResponse":
129+
return super().__new__(
130+
cls,
131+
*_args,
132+
events=events,
133+
_configuration=_configuration,
134+
**kwargs,
135+
)
136+
137+
138+
from launch.api_client.model.llm_fine_tune_event import LLMFineTuneEvent
Lines changed: 121 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,121 @@
1+
# coding: utf-8
2+
3+
"""
4+
launch
5+
6+
No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501
7+
8+
The version of the OpenAPI document: 1.0.0
9+
Generated by: https://openapi-generator.tech
10+
"""
11+
12+
import decimal # noqa: F401
13+
import functools # noqa: F401
14+
import io # noqa: F401
15+
import re # noqa: F401
16+
import typing # noqa: F401
17+
import uuid # noqa: F401
18+
from datetime import date, datetime # noqa: F401
19+
20+
import frozendict # noqa: F401
21+
import typing_extensions # noqa: F401
22+
from launch_client import schemas # noqa: F401
23+
24+
class GetFineTuneEventsResponse(schemas.DictSchema):
25+
"""NOTE: This class is auto generated by OpenAPI Generator.
26+
Ref: https://openapi-generator.tech
27+
28+
Do not edit the class manually.
29+
"""
30+
31+
class MetaOapg:
32+
required = {
33+
"events",
34+
}
35+
36+
class properties:
37+
class events(schemas.ListSchema):
38+
class MetaOapg:
39+
@staticmethod
40+
def items() -> typing.Type["LLMFineTuneEvent"]:
41+
return LLMFineTuneEvent
42+
def __new__(
43+
cls,
44+
_arg: typing.Union[typing.Tuple["LLMFineTuneEvent"], typing.List["LLMFineTuneEvent"]],
45+
_configuration: typing.Optional[schemas.Configuration] = None,
46+
) -> "events":
47+
return super().__new__(
48+
cls,
49+
_arg,
50+
_configuration=_configuration,
51+
)
52+
def __getitem__(self, i: int) -> "LLMFineTuneEvent":
53+
return super().__getitem__(i)
54+
__annotations__ = {
55+
"events": events,
56+
}
57+
events: MetaOapg.properties.events
58+
59+
@typing.overload
60+
def __getitem__(self, name: typing_extensions.Literal["events"]) -> MetaOapg.properties.events: ...
61+
@typing.overload
62+
def __getitem__(self, name: str) -> schemas.UnsetAnyTypeSchema: ...
63+
def __getitem__(
64+
self,
65+
name: typing.Union[
66+
typing_extensions.Literal["events",],
67+
str,
68+
],
69+
):
70+
# dict_instance[name] accessor
71+
return super().__getitem__(name)
72+
@typing.overload
73+
def get_item_oapg(self, name: typing_extensions.Literal["events"]) -> MetaOapg.properties.events: ...
74+
@typing.overload
75+
def get_item_oapg(self, name: str) -> typing.Union[schemas.UnsetAnyTypeSchema, schemas.Unset]: ...
76+
def get_item_oapg(
77+
self,
78+
name: typing.Union[
79+
typing_extensions.Literal["events",],
80+
str,
81+
],
82+
):
83+
return super().get_item_oapg(name)
84+
def __new__(
85+
cls,
86+
*_args: typing.Union[
87+
dict,
88+
frozendict.frozendict,
89+
],
90+
events: typing.Union[
91+
MetaOapg.properties.events,
92+
list,
93+
tuple,
94+
],
95+
_configuration: typing.Optional[schemas.Configuration] = None,
96+
**kwargs: typing.Union[
97+
schemas.AnyTypeSchema,
98+
dict,
99+
frozendict.frozendict,
100+
str,
101+
date,
102+
datetime,
103+
uuid.UUID,
104+
int,
105+
float,
106+
decimal.Decimal,
107+
None,
108+
list,
109+
tuple,
110+
bytes,
111+
],
112+
) -> "GetFineTuneEventsResponse":
113+
return super().__new__(
114+
cls,
115+
*_args,
116+
events=events,
117+
_configuration=_configuration,
118+
**kwargs,
119+
)
120+
121+
from launch_client.model.llm_fine_tune_event import LLMFineTuneEvent

0 commit comments

Comments
 (0)