Skip to content

Commit 8b7f661

Browse files
authored
Update google_llm.py for style fix
1 parent 02e8e10 commit 8b7f661

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/google/adk/models/google_llm.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -344,5 +344,5 @@ def _remove_display_name_if_present(
344344
This backend does not support the display_name parameter for file uploads,
345345
so it must be removed to prevent request failures.
346346
"""
347-
if data_obj and hasattr(data_obj, 'display_name'):
347+
if data_obj and data_obj.display_name:
348348
data_obj.display_name = None

0 commit comments

Comments
 (0)