import Foundation /// Warm-up is allowed only for a loopback endpoint and only when the user enabled it. public enum OllamaWarmUpPolicy { /// Returns true only for a local endpoint with warm-up enabled. public static func shouldWarmUp(endpoint: URL, enabled: Bool) -> Bool { enabled && EndpointPolicy.isLoopback(endpoint) } }