Sensitive Content Error When Using Foundation Models

I am using the following code in my iOS application.

#Playground {

let session = LanguageModelSession()

let response = try await session.respond(to: "List all states of USA.")

print(response.content)

}

And I get the following error: The operation couldn’t be completed. (com.apple.SensitiveContentAnalysisML error 15.)

I have turned off Apple Intelligence and turned on again. No use. I am using Xcode 27 beta 2.

any ideas?

Would you mind filing a bug via Feedback Assistant?

Sensitive Content Error When Using Foundation Models
 
 
Q