GenAI Client safety settings does not support multiple SafetySetting #654
Labels
component:python sdk
Issue/PR related to Python SDK
status:awaiting user response
Awaiting a response from the author
type:help
Support-related issues
Description of the bug:
VertexAI Client works fine, fine, but the new GenAI Client (
google.genai.Client
) does not support multiple SafetySetting.SafetySettings applied
Error message:
The error message is incorrect and misleading, which makes me think this is a bug.
If I only apply one safety setting it'll work, but whenever there are multiple, it claims that it is setting the same category.
Actual vs expected behavior:
Actual behavior: If I only apply one safety setting it'll work, but whenever there are multiple, it claims that it is setting the same category.
Expected behavior: should work the same as the vertexai client.
Any other information you'd like to share?
Both synchronous and asynchronous clients/functions have the issue mentioned above. Here's an asynchronous script that demonstrates the issue
The text was updated successfully, but these errors were encountered: