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

check candidates existance #9

Merged
merged 1 commit into from
Jan 6, 2024
Merged

Conversation

naoa
Copy link
Contributor

@naoa naoa commented Jan 6, 2024

The parsed_data may not have candidates.

{"promptFeedback"=>{"blockReason"=>"SAFETY", "safetyRatings"=>[{"category"=>"HARM_CATEGORY_SEXUALLY_EXPLICIT", "probability"=>"NEGLIGIBLE"}, {"category"=>"HARM_CATEGORY_HATE_SPEECH", "probability"=>"NEGLIGIBLE"}, {"category"=>"HARM_CATEGORY_HARASSMENT", "probability"=>"NEGLIGIBLE"}, {"category"=>"HARM_CATEGORY_DANGEROUS_CONTENT", "probability"=>"HIGH"}]}

@gbaptista
Copy link
Owner

Nice. Thanks for your contribution!

@gbaptista gbaptista merged commit 39d7e77 into gbaptista:main Jan 6, 2024
@gbaptista
Copy link
Owner

Released: Ruby Gemini AI 3.1.1

@gbaptista
Copy link
Owner

Actually, please prefer the newer Ruby Gemini AI 3.1.2

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants