in aidial_adapter_vertexai/embedding/multi_modal.py [0:0]
def validate_request(request: EmbeddingsRequest) -> None:
if request.custom_fields is not None:
if request.custom_fields.instruction is not None:
raise ValidationError("Instruction prompt is not supported")
if request.custom_fields.type is not None:
raise ValidationError(
"The embedding model does not support embedding types"
)