in aidial_adapter_vertexai/chat/static_tools.py [0:0]
def check_dynamic_threshold(cls, values):
if values.get("mode") == "MODE_UNSPECIFIED" and (
values.get("dynamic_threshold") is not None
or values.get("dynamicThreshold") is not None
):
raise ValidationError(
"dynamic_threshold must be None when mode is MODE_UNSPECIFIED"
)
return values