diff --git a/src/gemini_webapi/client.py b/src/gemini_webapi/client.py index 2be9037..bb9927b 100644 --- a/src/gemini_webapi/client.py +++ b/src/gemini_webapi/client.py @@ -349,15 +349,16 @@ async def generate_content( candidates = [] for candidate in body[4]: web_images = ( - candidate[4] + candidate[12] + and candidate[12][1] and [ WebImage( url=image[0][0][0], - title=image[2], + title=image[7][0], alt=image[0][4], proxies=self.proxies, ) - for image in candidate[4] + for image in candidate[12][1] ] or [] )