Skip to content

Commit f70eeb3

Browse files
committed
fix: warn about image only for non-user roles
1 parent 5d9a7e7 commit f70eeb3

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/google/adk/models/anthropic_llm.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -142,7 +142,7 @@ def content_to_message_param(
142142
message_block = []
143143
for part in content.parts or []:
144144
# Image data is not supported in Claude for model turns.
145-
if _is_image_part(part):
145+
if content.role != "user" and _is_image_part(part):
146146
logger.warning("Image data is not supported in Claude for model turns.")
147147
continue
148148

0 commit comments

Comments
 (0)