<!--
{
  "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/unsupportedGenerationGuide(_:)",
  "metadataVersion" : "0.1.0",
  "role" : "Case",
  "symbol" : {
    "kind" : "Case",
    "modules" : [
      "Foundation Models"
    ],
    "preciseIdentifier" : "s:16FoundationModels18LanguageModelErrorO26unsupportedGenerationGuideyA2C011UnsupportedgH0VcACmF"
  },
  "title" : "LanguageModelError.unsupportedGenerationGuide(_:)"
}
-->

# LanguageModelError.unsupportedGenerationGuide(_:)

An unsupported generation guide was used.

```
case unsupportedGenerationGuide(LanguageModelError.UnsupportedGenerationGuide)
```

## Discussion

This failure occurs if you attempt to use generation guides that a model does not support.
For example, many models don’t support certain guides using certain regex patterns.

---

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)