Hien M. Bui
Hien M. Bui
See #170 Maybe it will help you
> You could try to delete the generation_config in the model if you use that It works for me. Thanks @ydm20231608
Hi @Ki-Zhang , When you set up your model, the generation_config is in it. Try ignoring it like this. 
Try set up ``` for candidate in response.candidates: return [part.text for part in candidate.content.parts] ``` instead of `response.text` It worked for me
I think the main reason is the model doesn't return any text in sometimes, based on the explanation of @MarkDaoust in https://github.com/google/generative-ai-python/issues/196#issuecomment-1930503073 I still get this error with my code...