Indeed, the comment was misleading, the code was refactored in commit e42cbb2dd6bcbf6dd4b9edd2fd46b8ba122bb8c2 in the meantime yesterday.
The part of the code is now:
# Load the pre-trained sentence transformer model model_name = "BAAI/bge-base-en-v1.5"
model = SentenceTransformer(os.path.join(os.environ['MODELS'],model_name))