google-genai 1.35.0__tar.gz → 1.36.0__tar.gz

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.
Files changed (45) hide show
  1. {google_genai-1.35.0/google_genai.egg-info → google_genai-1.36.0}/PKG-INFO +1 -1
  2. {google_genai-1.35.0 → google_genai-1.36.0}/google/genai/tunings.py +6 -0
  3. {google_genai-1.35.0 → google_genai-1.36.0}/google/genai/types.py +7 -0
  4. {google_genai-1.35.0 → google_genai-1.36.0}/google/genai/version.py +1 -1
  5. {google_genai-1.35.0 → google_genai-1.36.0/google_genai.egg-info}/PKG-INFO +1 -1
  6. {google_genai-1.35.0 → google_genai-1.36.0}/pyproject.toml +1 -1
  7. {google_genai-1.35.0 → google_genai-1.36.0}/LICENSE +0 -0
  8. {google_genai-1.35.0 → google_genai-1.36.0}/MANIFEST.in +0 -0
  9. {google_genai-1.35.0 → google_genai-1.36.0}/README.md +0 -0
  10. {google_genai-1.35.0 → google_genai-1.36.0}/google/genai/__init__.py +0 -0
  11. {google_genai-1.35.0 → google_genai-1.36.0}/google/genai/_adapters.py +0 -0
  12. {google_genai-1.35.0 → google_genai-1.36.0}/google/genai/_api_client.py +0 -0
  13. {google_genai-1.35.0 → google_genai-1.36.0}/google/genai/_api_module.py +0 -0
  14. {google_genai-1.35.0 → google_genai-1.36.0}/google/genai/_automatic_function_calling_util.py +0 -0
  15. {google_genai-1.35.0 → google_genai-1.36.0}/google/genai/_base_transformers.py +0 -0
  16. {google_genai-1.35.0 → google_genai-1.36.0}/google/genai/_base_url.py +0 -0
  17. {google_genai-1.35.0 → google_genai-1.36.0}/google/genai/_common.py +0 -0
  18. {google_genai-1.35.0 → google_genai-1.36.0}/google/genai/_extra_utils.py +0 -0
  19. {google_genai-1.35.0 → google_genai-1.36.0}/google/genai/_live_converters.py +0 -0
  20. {google_genai-1.35.0 → google_genai-1.36.0}/google/genai/_local_tokenizer_loader.py +0 -0
  21. {google_genai-1.35.0 → google_genai-1.36.0}/google/genai/_mcp_utils.py +0 -0
  22. {google_genai-1.35.0 → google_genai-1.36.0}/google/genai/_operations_converters.py +0 -0
  23. {google_genai-1.35.0 → google_genai-1.36.0}/google/genai/_replay_api_client.py +0 -0
  24. {google_genai-1.35.0 → google_genai-1.36.0}/google/genai/_test_api_client.py +0 -0
  25. {google_genai-1.35.0 → google_genai-1.36.0}/google/genai/_tokens_converters.py +0 -0
  26. {google_genai-1.35.0 → google_genai-1.36.0}/google/genai/_transformers.py +0 -0
  27. {google_genai-1.35.0 → google_genai-1.36.0}/google/genai/batches.py +0 -0
  28. {google_genai-1.35.0 → google_genai-1.36.0}/google/genai/caches.py +0 -0
  29. {google_genai-1.35.0 → google_genai-1.36.0}/google/genai/chats.py +0 -0
  30. {google_genai-1.35.0 → google_genai-1.36.0}/google/genai/client.py +0 -0
  31. {google_genai-1.35.0 → google_genai-1.36.0}/google/genai/errors.py +0 -0
  32. {google_genai-1.35.0 → google_genai-1.36.0}/google/genai/files.py +0 -0
  33. {google_genai-1.35.0 → google_genai-1.36.0}/google/genai/live.py +0 -0
  34. {google_genai-1.35.0 → google_genai-1.36.0}/google/genai/live_music.py +0 -0
  35. {google_genai-1.35.0 → google_genai-1.36.0}/google/genai/local_tokenizer.py +0 -0
  36. {google_genai-1.35.0 → google_genai-1.36.0}/google/genai/models.py +0 -0
  37. {google_genai-1.35.0 → google_genai-1.36.0}/google/genai/operations.py +0 -0
  38. {google_genai-1.35.0 → google_genai-1.36.0}/google/genai/pagers.py +0 -0
  39. {google_genai-1.35.0 → google_genai-1.36.0}/google/genai/py.typed +0 -0
  40. {google_genai-1.35.0 → google_genai-1.36.0}/google/genai/tokens.py +0 -0
  41. {google_genai-1.35.0 → google_genai-1.36.0}/google_genai.egg-info/SOURCES.txt +0 -0
  42. {google_genai-1.35.0 → google_genai-1.36.0}/google_genai.egg-info/dependency_links.txt +0 -0
  43. {google_genai-1.35.0 → google_genai-1.36.0}/google_genai.egg-info/requires.txt +0 -0
  44. {google_genai-1.35.0 → google_genai-1.36.0}/google_genai.egg-info/top_level.txt +0 -0
  45. {google_genai-1.35.0 → google_genai-1.36.0}/setup.cfg +0 -0
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: google-genai
3
- Version: 1.35.0
3
+ Version: 1.36.0
4
4
  Summary: GenAI Python SDK
5
5
  Author-email: Google LLC <googleapis-packages@google.com>
6
6
  License: Apache-2.0
@@ -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
 
@@ -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
@@ -13,4 +13,4 @@
13
13
  # limitations under the License.
14
14
  #
15
15
 
16
- __version__ = '1.35.0' # x-release-please-version
16
+ __version__ = '1.36.0' # x-release-please-version
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: google-genai
3
- Version: 1.35.0
3
+ Version: 1.36.0
4
4
  Summary: GenAI Python SDK
5
5
  Author-email: Google LLC <googleapis-packages@google.com>
6
6
  License: Apache-2.0
@@ -3,7 +3,7 @@ requires = ["setuptools", "wheel", "twine>=6.1.0", "packaging>=24.2", "pkginfo>=
3
3
 
4
4
  [project]
5
5
  name = "google-genai"
6
- version = "1.35.0"
6
+ version = "1.36.0"
7
7
  description = "GenAI Python SDK"
8
8
  readme = "README.md"
9
9
  license = {text = "Apache-2.0"}
File without changes
File without changes
File without changes
File without changes