Skip to content

Commit 39cb423

Browse files
sararobcopybara-github
authored andcommitted
feat: Add EvaluationConfig support to tune() in Java
PiperOrigin-RevId: 829016587
1 parent b469597 commit 39cb423

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

google/genai/types.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -10126,7 +10126,7 @@ class AutoraterConfig(_common.BaseModel):
1012610126
endpoint to use.
1012710127

1012810128
Publisher model format:
10129-
`projects/{project}/locations/{location}/publishers/*/models/*`
10129+
`projects/{project}/locations/{location}/publishers/{publisher}/models/{model}`
1013010130

1013110131
Tuned model endpoint format:
1013210132
`projects/{project}/locations/{location}/endpoints/{endpoint}`""",
@@ -10158,7 +10158,7 @@ class AutoraterConfigDict(TypedDict, total=False):
1015810158
endpoint to use.
1015910159

1016010160
Publisher model format:
10161-
`projects/{project}/locations/{location}/publishers/*/models/*`
10161+
`projects/{project}/locations/{location}/publishers/{publisher}/models/{model}`
1016210162

1016310163
Tuned model endpoint format:
1016410164
`projects/{project}/locations/{location}/endpoints/{endpoint}`"""
@@ -11261,7 +11261,7 @@ class TuningJob(_common.BaseModel):
1126111261
description="""Tuning Spec for open sourced and third party Partner models.""",
1126211262
)
1126311263
evaluation_config: Optional[EvaluationConfig] = Field(
11264-
default=None, description=""""""
11264+
default=None, description="""Evaluation config for the tuning job."""
1126511265
)
1126611266
custom_base_model: Optional[str] = Field(
1126711267
default=None,
@@ -11361,7 +11361,7 @@ class TuningJobDict(TypedDict, total=False):
1136111361
"""Tuning Spec for open sourced and third party Partner models."""
1136211362

1136311363
evaluation_config: Optional[EvaluationConfigDict]
11364-
""""""
11364+
"""Evaluation config for the tuning job."""
1136511365

1136611366
custom_base_model: Optional[str]
1136711367
"""Optional. The user-provided path to custom model weights. Set this field to tune a custom model. The path must be a Cloud Storage directory that contains the model weights in .safetensors format along with associated model metadata files. If this field is set, the base_model field must still be set to indicate which base model the custom model is derived from. This feature is only available for open source models."""

0 commit comments

Comments
 (0)