Harsh Singh
Harsh Singh
I tried catching the `ValueError: Content has no parts.` by adding this: ``` try: prediction = model.generate_content(prompt, generation_config=GENERATION_CONFIG, ) logging.info(f"Prediction_text: {prediction.text}") return prediction except ValueError as e: logging.error(f"Something went wrong...
@lavinigam-gcp, there could be something else at play here because even with safety_settings set to `BLOCK_NONE`, I get `FinishReason.OTHER` as a response with: ``` response.candidates[0].finish_reason ```
Hey @lavinigam-gcp, what's the best way of sharing the .log file? I will have to remove the sensitive details from it. Are they any other attributes from `response.candidates[0]` that can...
Ya, same error as me. I added a retry block in my code to call the API 5 times but it just fails. Since the API call was not returning...