Issue with multimodal contexts #1

Closed
opened 2026-02-13 17:27:37 -06:00 by mirrors · 4 comments
Owner

Originally created by @UnitTHK on GitHub (Feb 16, 2024).

I'm seeing some issue with when I'm utilizing stuffs like email integration, for example:

Chat response on web: https://i.imgur.com/lDqbzG7.png

Error on the console:

Traceback (most recent call last):
File "E:\Python\Others\selfbot-fuve.venv\lib\site-packages\discord\client.py", line 609, in _run_event
await coro(*args, **kwargs)
File "E:\Python\Others\selfbot-fuve\main.py", line 78, in msg
response = await get_ai_response(content, message.channel.id)
File "E:\Python\Others\selfbot-fuve\main.py", line 46, in get_ai_response
response = await chat.send_message(message)
File "E:\Python\Others\selfbot-fuve.venv\lib\site-packages\gemini\client.py", line 338, in send_message
return await self.geminiclient.generate_content(prompt, self)
File "E:\Python\Others\selfbot-fuve.venv\lib\site-packages\gemini\client.py", line 38, in wrapper
return await func(self, *args, **kwargs)
File "E:\Python\Others\selfbot-fuve.venv\lib\site-packages\gemini\client.py", line 213, in generate_content
for candidate in body[4]:
TypeError: 'NoneType' object is not iterable

Seems like there's some stuffs regarding multimodal that's not dealt with yet?

Originally created by @UnitTHK on GitHub (Feb 16, 2024). I'm seeing some issue with when I'm utilizing stuffs like email integration, for example: Chat response on web: https://i.imgur.com/lDqbzG7.png Error on the console: Traceback (most recent call last): File "E:\Python\Others\selfbot-fuve\.venv\lib\site-packages\discord\client.py", line 609, in _run_event await coro(*args, **kwargs) File "E:\Python\Others\selfbot-fuve\main.py", line 78, in msg response = await get_ai_response(content, message.channel.id) File "E:\Python\Others\selfbot-fuve\main.py", line 46, in get_ai_response response = await chat.send_message(message) File "E:\Python\Others\selfbot-fuve\.venv\lib\site-packages\gemini\client.py", line 338, in send_message return await self.geminiclient.generate_content(prompt, self) File "E:\Python\Others\selfbot-fuve\.venv\lib\site-packages\gemini\client.py", line 38, in wrapper return await func(self, *args, **kwargs) File "E:\Python\Others\selfbot-fuve\.venv\lib\site-packages\gemini\client.py", line 213, in generate_content for candidate in body[4]: TypeError: 'NoneType' object is not iterable Seems like there's some stuffs regarding multimodal that's not dealt with yet?
mirrors 2026-02-13 17:27:37 -06:00
Author
Owner

@jollyolliel commented on GitHub (Feb 16, 2024):

Also, I just want to check, can you generate images. I cant, Just want to know if it is just me or not

@jollyolliel commented on GitHub (Feb 16, 2024): Also, I just want to check, can you generate images. I cant, Just want to know if it is just me or not
Author
Owner

@UnitTHK commented on GitHub (Feb 16, 2024):

Yes, I can generate images on my account, although when I do so via the
API, the response from the AI is that it can't do that yet. Maybe it have
to do with where it's ran from (server in Finland, I'm in Vietnam).

On Sat, Feb 17, 2024, 12:01 AM jollyolliel @.***> wrote:

Also, I just want to check, can you generate images


Reply to this email directly, view it on GitHub
https://github.com/HanaokaYuzu/Gemini-API/issues/2#issuecomment-1948886163,
or unsubscribe
https://github.com/notifications/unsubscribe-auth/ACSYSBYH2ABJGI27GDT3YALYT6GFJAVCNFSM6AAAAABDLXA4ISVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMYTSNBYHA4DMMJWGM
.
You are receiving this because you authored the thread.Message ID:
@.***>

@UnitTHK commented on GitHub (Feb 16, 2024): Yes, I can generate images on my account, although when I do so via the API, the response from the AI is that it can't do that yet. Maybe it have to do with where it's ran from (server in Finland, I'm in Vietnam). On Sat, Feb 17, 2024, 12:01 AM jollyolliel ***@***.***> wrote: > Also, I just want to check, can you generate images > > — > Reply to this email directly, view it on GitHub > <https://github.com/HanaokaYuzu/Gemini-API/issues/2#issuecomment-1948886163>, > or unsubscribe > <https://github.com/notifications/unsubscribe-auth/ACSYSBYH2ABJGI27GDT3YALYT6GFJAVCNFSM6AAAAABDLXA4ISVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMYTSNBYHA4DMMJWGM> > . > You are receiving this because you authored the thread.Message ID: > ***@***.***> >
Author
Owner

@HanaokaYuzu commented on GitHub (Feb 18, 2024):

Could you install the latest version and try again? Tested with YouTube and Google Workspace extensions and they work fine on my side.

@HanaokaYuzu commented on GitHub (Feb 18, 2024): Could you install the latest version and try again? Tested with YouTube and Google Workspace extensions and they work fine on my side.
Author
Owner

@UnitTHK commented on GitHub (Feb 19, 2024):

Got it, will try and report back

@UnitTHK commented on GitHub (Feb 19, 2024): Got it, will try and report back
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
mirrors/Gemini-API#1
No description provided.