google-genai 1.35.0__py3-none-any.whl → 1.36.0__py3-none-any.whl
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- google/genai/tunings.py +6 -0
- google/genai/types.py +7 -0
- google/genai/version.py +1 -1
- {google_genai-1.35.0.dist-info → google_genai-1.36.0.dist-info}/METADATA +1 -1
- {google_genai-1.35.0.dist-info → google_genai-1.36.0.dist-info}/RECORD +8 -8
- {google_genai-1.35.0.dist-info → google_genai-1.36.0.dist-info}/WHEEL +0 -0
- {google_genai-1.35.0.dist-info → google_genai-1.36.0.dist-info}/licenses/LICENSE +0 -0
- {google_genai-1.35.0.dist-info → google_genai-1.36.0.dist-info}/top_level.txt +0 -0
google/genai/tunings.py
CHANGED
@@ -209,6 +209,9 @@ def _CreateTuningJobConfig_to_mldev(
|
|
209
209
|
'evaluation_config parameter is not supported in Gemini API.'
|
210
210
|
)
|
211
211
|
|
212
|
+
if getv(from_object, ['labels']) is not None:
|
213
|
+
raise ValueError('labels parameter is not supported in Gemini API.')
|
214
|
+
|
212
215
|
return to_object
|
213
216
|
|
214
217
|
|
@@ -507,6 +510,9 @@ def _CreateTuningJobConfig_to_vertex(
|
|
507
510
|
),
|
508
511
|
)
|
509
512
|
|
513
|
+
if getv(from_object, ['labels']) is not None:
|
514
|
+
setv(parent_object, ['labels'], getv(from_object, ['labels']))
|
515
|
+
|
510
516
|
return to_object
|
511
517
|
|
512
518
|
|
google/genai/types.py
CHANGED
@@ -10410,6 +10410,10 @@ class CreateTuningJobConfig(_common.BaseModel):
|
|
10410
10410
|
evaluation_config: Optional[EvaluationConfig] = Field(
|
10411
10411
|
default=None, description="""Evaluation config for the tuning job."""
|
10412
10412
|
)
|
10413
|
+
labels: Optional[dict[str, str]] = Field(
|
10414
|
+
default=None,
|
10415
|
+
description="""Optional. The labels with user-defined metadata to organize TuningJob and generated resources such as Model and Endpoint. Label keys and values can be no longer than 64 characters (Unicode codepoints), can only contain lowercase letters, numeric characters, underscores and dashes. International characters are allowed. See https://goo.gl/xmQnxf for more information and examples of labels.""",
|
10416
|
+
)
|
10413
10417
|
|
10414
10418
|
|
10415
10419
|
class CreateTuningJobConfigDict(TypedDict, total=False):
|
@@ -10451,6 +10455,9 @@ class CreateTuningJobConfigDict(TypedDict, total=False):
|
|
10451
10455
|
evaluation_config: Optional[EvaluationConfigDict]
|
10452
10456
|
"""Evaluation config for the tuning job."""
|
10453
10457
|
|
10458
|
+
labels: Optional[dict[str, str]]
|
10459
|
+
"""Optional. The labels with user-defined metadata to organize TuningJob and generated resources such as Model and Endpoint. Label keys and values can be no longer than 64 characters (Unicode codepoints), can only contain lowercase letters, numeric characters, underscores and dashes. International characters are allowed. See https://goo.gl/xmQnxf for more information and examples of labels."""
|
10460
|
+
|
10454
10461
|
|
10455
10462
|
CreateTuningJobConfigOrDict = Union[
|
10456
10463
|
CreateTuningJobConfig, CreateTuningJobConfigDict
|
google/genai/version.py
CHANGED
@@ -29,11 +29,11 @@ google/genai/operations.py,sha256=Ccm4EW13cT_EtCq8Fa3n8jlQySyy9KqJ98ZK4pF0DDA,12
|
|
29
29
|
google/genai/pagers.py,sha256=m0SfWWn1EJs2k1On3DZx371qb8g2BRm_188ExsicIRc,7098
|
30
30
|
google/genai/py.typed,sha256=RsMFoLwBkAvY05t6izop4UHZtqOPLiKp3GkIEizzmQY,40
|
31
31
|
google/genai/tokens.py,sha256=8RbZ0kgvyKT3SwbgIUOHr6TTZL24v4fqYarhlA8r1ac,12503
|
32
|
-
google/genai/tunings.py,sha256=
|
33
|
-
google/genai/types.py,sha256=
|
34
|
-
google/genai/version.py,sha256=
|
35
|
-
google_genai-1.
|
36
|
-
google_genai-1.
|
37
|
-
google_genai-1.
|
38
|
-
google_genai-1.
|
39
|
-
google_genai-1.
|
32
|
+
google/genai/tunings.py,sha256=TVohav5pT5jOj4RgnPdvLI6iDdOVGnPRB8XRBNuyP2E,63513
|
33
|
+
google/genai/types.py,sha256=fspcawXVefHjztCcyaVWm9A9EmujLyIeTenKFAG1n2c,539186
|
34
|
+
google/genai/version.py,sha256=Rk9SxRsO8FUdbqZ7sGPZhwBPi5FC7Dq5vMf2ArZQChs,627
|
35
|
+
google_genai-1.36.0.dist-info/licenses/LICENSE,sha256=z8d0m5b2O9McPEK1xHG_dWgUBT6EfBDz6wA0F7xSPTA,11358
|
36
|
+
google_genai-1.36.0.dist-info/METADATA,sha256=ehuHCcSvnNNaG8eLakJRyvYAkq7213E7ZAFsosqiE88,43556
|
37
|
+
google_genai-1.36.0.dist-info/WHEEL,sha256=_zCd3N1l69ArxyTb8rzEoP9TpbYXkqRFSNOD5OuxnTs,91
|
38
|
+
google_genai-1.36.0.dist-info/top_level.txt,sha256=_1QvSJIhFAGfxb79D6DhB7SUw2X6T4rwnz_LLrbcD3c,7
|
39
|
+
google_genai-1.36.0.dist-info/RECORD,,
|
File without changes
|
File without changes
|
File without changes
|