You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
(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
The text was updated successfully, but these errors were encountered:
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
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
The text was updated successfully, but these errors were encountered: