[go: nahoru, domu]

Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Execute operation "model.generate_content(content).text" and cause error '*** IndexError: list index out of range' #197

Closed
UCC-team opened this issue Dec 18, 2023 · 1 comment
Labels
type:bug Something isn't working

Comments

@UCC-team
Copy link

Description of the bug:

model.generate_content(content).text

Actual vs expected behavior:

(Pdb) len(content)
31256
(Pdb) model.generate_content(content)
<google.generativeai.types.generation_types.GenerateContentResponse object at 0x116f2b350>
(Pdb) rep = model.generate_content(content)
(Pdb) rep
<google.generativeai.types.generation_types.GenerateContentResponse object at 0x11758c350>
(Pdb) rep.text
*** IndexError: list index out of range

Any other information you'd like to share?

No response

@UCC-team UCC-team added the type:bug Something isn't working label Dec 18, 2023
@UCC-team UCC-team changed the title Execute operation "model.generate_content(content)" and cause error '*** IndexError: list index out of range' Execute operation "model.generate_content(content).text" and cause error '*** IndexError: list index out of range' Dec 18, 2023
@MarkDaoust
Copy link
Member

Hi, it would help to have a little more of the error detail, but this may be fixed in this commit: google-gemini/generative-ai-python@0a9596f

Which was included in the 0.3.2 release.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
type:bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants