|
14 | 14 | JobResourceWithStreamingResponse, |
15 | 15 | AsyncJobResourceWithStreamingResponse, |
16 | 16 | ) |
17 | | -from ...types import ( |
18 | | - post_training_preference_optimize_params, |
19 | | - post_training_supervised_fine_tune_params, |
20 | | -) |
| 17 | +from ...types import post_training_preference_optimize_params, post_training_supervised_fine_tune_params |
21 | 18 | from ..._types import NOT_GIVEN, Body, Query, Headers, NotGiven |
22 | 19 | from ..._utils import ( |
23 | 20 | maybe_transform, |
|
33 | 30 | ) |
34 | 31 | from ..._base_client import make_request_options |
35 | 32 | from ...types.post_training_job import PostTrainingJob |
36 | | -from ...types.algorithm_config_param import AlgorithmConfigParam |
37 | 33 |
|
38 | 34 | __all__ = ["PostTrainingResource", "AsyncPostTrainingResource"] |
39 | 35 |
|
@@ -115,7 +111,7 @@ def supervised_fine_tune( |
115 | 111 | logger_config: Dict[str, Union[bool, float, str, Iterable[object], object, None]], |
116 | 112 | model: str, |
117 | 113 | training_config: post_training_supervised_fine_tune_params.TrainingConfig, |
118 | | - algorithm_config: AlgorithmConfigParam | NotGiven = NOT_GIVEN, |
| 114 | + algorithm_config: post_training_supervised_fine_tune_params.AlgorithmConfig | NotGiven = NOT_GIVEN, |
119 | 115 | checkpoint_dir: str | NotGiven = NOT_GIVEN, |
120 | 116 | # Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs. |
121 | 117 | # The extra values given here take precedence over values defined on the client or passed to this method. |
@@ -232,7 +228,7 @@ async def supervised_fine_tune( |
232 | 228 | logger_config: Dict[str, Union[bool, float, str, Iterable[object], object, None]], |
233 | 229 | model: str, |
234 | 230 | training_config: post_training_supervised_fine_tune_params.TrainingConfig, |
235 | | - algorithm_config: AlgorithmConfigParam | NotGiven = NOT_GIVEN, |
| 231 | + algorithm_config: post_training_supervised_fine_tune_params.AlgorithmConfig | NotGiven = NOT_GIVEN, |
236 | 232 | checkpoint_dir: str | NotGiven = NOT_GIVEN, |
237 | 233 | # Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs. |
238 | 234 | # The extra values given here take precedence over values defined on the client or passed to this method. |
|
0 commit comments