UnavailableReason
@nonexhaustive
public enum UnavailableReason : Hashable, Equatable, SendableReasons that the on-device model is in the
unavailable(_:) state.
For more details, see the Apple documentation.
-
The device does not support the on-device model.
For more details, see the Apple documentation.
Declaration
Swift
case deviceNotEligible -
The user does not have Apple Intelligence enabled on their device.
Apple Intelligence is required to use the on-device model. Unlike
deviceNotEligible, this unavailable reason means that the device is capable on running the on-device model. For more details, see the Apple documentation.Declaration
Swift
case appleIntelligenceNotEnabled -
The on-device model isn't available on the user's device.
For more details, see the Apple documentation.
Declaration
Swift
case modelNotReady -
The on-device model is unavailable for an unknown reason.
See
FoundationModels.SystemLanguageModel.availabilityfor addedFoundationModels.SystemLanguageModel.Availability.UnavailableReasonreasons.Declaration
Swift
case unknown