<!--
{
  "availability" : [
    "iOS: 27.0.0 -",
    "iPadOS: 27.0.0 -",
    "macCatalyst: 27.0.0 -",
    "macOS: 27.0.0 -",
    "visionOS: 27.0.0 -",
    "watchOS: 27.0.0 -"
  ],
  "documentType" : "symbol",
  "framework" : "FoundationModels",
  "identifier" : "/documentation/FoundationModels/LanguageModelError/unsupportedCapability(_:)",
  "metadataVersion" : "0.1.0",
  "role" : "Case",
  "symbol" : {
    "kind" : "Case",
    "modules" : [
      "Foundation Models"
    ],
    "preciseIdentifier" : "s:16FoundationModels18LanguageModelErrorO21unsupportedCapabilityyA2C011UnsupportedG0VcACmF"
  },
  "title" : "LanguageModelError.unsupportedCapability(_:)"
}
-->

# LanguageModelError.unsupportedCapability(_:)

The model being used doesn’t support a particular feature.

```
case unsupportedCapability(LanguageModelError.UnsupportedCapability)
```

## Discussion

This failure can happen if you use capabilities like guided generation or tool calling
with a model that does not support them.

---

Copyright &copy; 2026 Apple Inc. All rights reserved. | [Terms of Use](https://www.apple.com/legal/internet-services/terms/site.html) | [Privacy Policy](https://www.apple.com/privacy/privacy-policy)