Error: Failed to generate content. Response: Array
(
[candidates] => Array
(
[0] => Array
(
[finishReason] => SAFETY
[index] => 0
[safetyRatings] => Array
(
[0] => Array
(
[category] => HARM_CATEGORY_SEXUALLY_EXPLICIT
[probability] => MEDIUM
)
[1] => Array
(
[category] => HARM_CATEGORY_HATE_SPEECH
[probability] => NEGLIGIBLE
)
[2] => Array
(
[category] => HARM_CATEGORY_HARASSMENT
[probability] => NEGLIGIBLE
)
[3] => Array
(
[category] => HARM_CATEGORY_DANGEROUS_CONTENT
[probability] => NEGLIGIBLE
)
)
)
)
[usageMetadata] => Array
(
[promptTokenCount] => 1092
[totalTokenCount] => 1092
)
[modelVersion] => gemini-1.5-flash-001
)