Add the onions and sauté for 1-2 minutes. Stir in the flour and milk and cook for another 2-3 minutes or, until the mixture thickens and there are no lumps.
Using a blender, blend until desired consistency. Place on stove and reduce heat to low. Stir in the sour cream, salt, and pepper until smooth then stir in the cheese until melted.