29
29
from google .cloud .aiplatform_v1 .services import (
30
30
gen_ai_tuning_service as gen_ai_tuning_service_v1 ,
31
31
)
32
- from google .cloud .aiplatform_v1 .types import (
32
+ from google .cloud .aiplatform_v1beta1 .services import (
33
+ gen_ai_tuning_service as gen_ai_tuning_service_v1beta1 ,
34
+ )
35
+ from google .cloud .aiplatform_v1beta1 .types import (
33
36
tuning_job as gca_tuning_job_types ,
34
37
)
35
- from google .cloud .aiplatform_v1 import types as gca_types
38
+ from google .cloud .aiplatform_v1beta1 import types as gca_types
36
39
37
40
from google .rpc import status_pb2 # type: ignore
38
41
42
45
43
46
class TuningJobClientWithOverride (aiplatform_utils .ClientWithOverride ):
44
47
_is_temporary = True
45
- _default_version = compat .V1
48
+ _default_version = compat .V1BETA1
46
49
_version_map = (
47
50
(compat .V1 , gen_ai_tuning_service_v1 .client .GenAiTuningServiceClient ),
48
- # v1beta1 version does not exist
49
- # (compat.V1BETA1, gen_ai_tuning_service_v1beta1.client.GenAiTuningServiceClient),
51
+ (compat .V1BETA1 , gen_ai_tuning_service_v1beta1 .client .GenAiTuningServiceClient ),
50
52
)
51
53
52
54
@@ -66,7 +68,7 @@ class TuningJob(aiplatform_base._VertexAiResourceNounPlus):
66
68
client_class = TuningJobClientWithOverride
67
69
68
70
_gca_resource : gca_tuning_job_types .TuningJob
69
- api_client : gen_ai_tuning_service_v1 .client .GenAiTuningServiceClient
71
+ api_client : gen_ai_tuning_service_v1beta1 .client .GenAiTuningServiceClient
70
72
71
73
def __init__ (self , tuning_job_name : str ):
72
74
super ().__init__ (resource_name = tuning_job_name )
0 commit comments