We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent c08a76c commit 3e387baCopy full SHA for 3e387ba
libs/vertexai/tests/unit_tests/test_chat_models.py
@@ -29,6 +29,7 @@
29
PydanticToolsParser,
30
)
31
from pydantic import BaseModel
32
+from vertexai.generative_models import SafetySetting as VertexSafetySetting
33
from vertexai.language_models import ( # type: ignore
34
ChatMessage,
35
InputOutputTextPair,
@@ -945,7 +946,7 @@ def test_safety_settings_gemini() -> None:
945
946
947
def test_safety_settings_gemini_init() -> None:
948
expected_safety_setting = [
- SafetySetting(
949
+ VertexSafetySetting(
950
category=HarmCategory.HARM_CATEGORY_DANGEROUS_CONTENT,
951
threshold=SafetySetting.HarmBlockThreshold.BLOCK_LOW_AND_ABOVE,
952
method=SafetySetting.HarmBlockMethod.SEVERITY,
0 commit comments