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

VertexAI SafetyRating.blocked is undefined. #8819

Open
dlarocque opened this issue Feb 28, 2025 · 1 comment
Open

VertexAI SafetyRating.blocked is undefined. #8819

dlarocque opened this issue Feb 28, 2025 · 1 comment
Assignees

Comments

@dlarocque
Copy link
Contributor

dlarocque commented Feb 28, 2025

Operating System

n/a

Environment (if applicable)

n/a

Firebase SDK Version

11.4.0

Firebase SDK Product(s)

VertexAI

Project Tooling

TypeScript

Detailed Problem Description

SafetyRating.blocked is a required property, but it is undefined when it is not true. The default value should be false, or the type should be optional

See https://github.com/firebase/firebase-ios-sdk/blob/1d32f365dea853d543e0f111a67d458e6cc49f35/FirebaseVertexAI/Sources/Safety.swift#L290

Steps and code to reproduce issue

call generateContent() with a prompt that will be blocked due to safety settings.

@dlarocque dlarocque added bug new A new issue that hasn't be categoirzed as question, bug or feature request question labels Feb 28, 2025
@dlarocque dlarocque self-assigned this Feb 28, 2025
@jbalidiong jbalidiong removed question new A new issue that hasn't be categoirzed as question, bug or feature request labels Mar 3, 2025
@gioboa
Copy link

gioboa commented Mar 26, 2025

Can I take this one?

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

No branches or pull requests

3 participants