Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 5 additions & 4 deletions google/genai/files.py
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@

# Code generated by the Google Gen AI SDK generator DO NOT EDIT.

import builtins
import io
import json
import logging
Expand Down Expand Up @@ -498,7 +499,7 @@ def delete(
def _register_files(
self,
*,
uris: list[str],
uris: builtins.list[str],
config: Optional[types.RegisterFilesConfigOrDict] = None,
) -> types.RegisterFilesResponse:
parameter_model = types._InternalRegisterFilesParameters(
Expand Down Expand Up @@ -736,7 +737,7 @@ def register_files(
self,
*,
auth: google.auth.credentials.Credentials,
uris: list[str],
uris: builtins.list[str],
config: Optional[types.RegisterFilesConfigOrDict] = None,
) -> types.RegisterFilesResponse:
"""Registers gcs files with the file service."""
Expand Down Expand Up @@ -1118,7 +1119,7 @@ async def delete(
async def _register_files(
self,
*,
uris: list[str],
uris: builtins.list[str],
config: Optional[types.RegisterFilesConfigOrDict] = None,
) -> types.RegisterFilesResponse:
parameter_model = types._InternalRegisterFilesParameters(
Expand Down Expand Up @@ -1347,7 +1348,7 @@ async def register_files(
self,
*,
auth: google.auth.credentials.Credentials,
uris: list[str],
uris: builtins.list[str],
config: Optional[types.RegisterFilesConfigOrDict] = None,
) -> types.RegisterFilesResponse:
"""Registers gcs files with the file service."""
Expand Down
9 changes: 5 additions & 4 deletions google/genai/models.py
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@

# Code generated by the Google Gen AI SDK generator DO NOT EDIT.

import builtins
import contextlib
import json
import logging
Expand Down Expand Up @@ -5316,7 +5317,7 @@ def _edit_image(
*,
model: str,
prompt: str,
reference_images: list[types._ReferenceImageAPIOrDict],
reference_images: builtins.list[types._ReferenceImageAPIOrDict],
config: Optional[types.EditImageConfigOrDict] = None,
) -> types.EditImageResponse:
"""Private method for editing an image."""
Expand Down Expand Up @@ -6830,7 +6831,7 @@ def edit_image(
*,
model: str,
prompt: str,
reference_images: list[types._ReferenceImageAPIOrDict],
reference_images: builtins.list[types._ReferenceImageAPIOrDict],
config: Optional[types.EditImageConfigOrDict] = None,
) -> types.EditImageResponse:
"""Edits an image based on a text description and configuration.
Expand Down Expand Up @@ -7520,7 +7521,7 @@ async def _edit_image(
*,
model: str,
prompt: str,
reference_images: list[types._ReferenceImageAPIOrDict],
reference_images: builtins.list[types._ReferenceImageAPIOrDict],
config: Optional[types.EditImageConfigOrDict] = None,
) -> types.EditImageResponse:
"""Private method for editing an image asynchronously."""
Expand Down Expand Up @@ -9051,7 +9052,7 @@ async def edit_image(
*,
model: str,
prompt: str,
reference_images: list[types._ReferenceImageAPIOrDict],
reference_images: builtins.list[types._ReferenceImageAPIOrDict],
config: Optional[types.EditImageConfigOrDict] = None,
) -> types.EditImageResponse:
"""Edits an image based on a text description and configuration.
Expand Down
5 changes: 4 additions & 1 deletion google/genai/tunings.py
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@

# Code generated by the Google Gen AI SDK generator DO NOT EDIT.

import builtins
import json
import logging
from typing import Any, Optional, Union
Expand Down Expand Up @@ -3866,7 +3867,9 @@ def _get_styles() -> str:
"""

@staticmethod
def _parse_resource_name(marker: str, resource_parts: list[str]) -> str:
def _parse_resource_name(
marker: str, resource_parts: builtins.list[str]
) -> str:
"""Returns the part after the marker text part."""
for i in range(len(resource_parts)):
if resource_parts[i] == marker and i + 1 < len(resource_parts):
Expand Down
Loading