Skip to content

Commit 59301fb

Browse files
authored
fix: incorrect type checking (#283)
1 parent d64610c commit 59301fb

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

google/generativeai/types/content_types.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -224,7 +224,7 @@ def to_part(part: PartType):
224224
return glm.Part(file_data=to_file_data(part))
225225
elif isinstance(part, glm.FunctionCall):
226226
return glm.Part(function_call=part)
227-
elif isinstance(part, glm.FunctionCall):
227+
elif isinstance(part, glm.FunctionResponse):
228228
return glm.Part(function_response=part)
229229

230230
else:

0 commit comments

Comments
 (0)