Semantic field does not work with remote models

Hi all,

OS 3.1.0/RHEL 8

I am getting the below error when creating a semantic filed with a remote model.

Error: Failed to transform the mapping for semantic field at content due to Model xxxxxxxxx is a remote text embedding model but model config is not a text embedding config.

Below is how the model is registered.

POST /_plugins/_ml/models/_register
{
“name”: “remote-dense-model”,
“function_name”: “remote”,
“model_group_id”: “1jriBYsBq7EKuKzZX131”,
“description”: “test model”,
“connector_id”: “a1eMb4kBJ1eYAeTMAljY”,
“model_config”: {
“model_type”: “TEXT_EMBEDDING”,
“framework_type”: “HUGGINGFACE_TRANSFORMERS”,
“embedding_dimension”: 768,
“additional_config”: {
“space_type”: “l2”
}
}
}

Thanks

This is a bug and we have fixed it. But will release the fix in 3.2