def METHOD_NAME(cls, session, organisation_id, model_provider_id):
    model = session.query(ModelsConfig.provider).filter(ModelsConfig.id == model_provider_id,
                                                        ModelsConfig.org_id == organisation_id).first()
    if model is None:
        return {"error": "Model not found"}
    else:
        return {"provider": model.provider}