import Playgrounds
import FoundationModels
#Playground {
do {
let session = LanguageModelSession()
let response = try await session.respond(
to: "Explain SwiftUI in one sentence."
)
print(response.content)
} catch {
print("Error: \(error)")
}
}```
I tested Foundation Models with this simple code, and it generated this error: "Error Domain=ModelManagerServices.ModelManagerError Code=1026 \"(null)\" UserInfo={NSMultipleUnderlyingErrorsKey=(\n)}"
I tried restarting my Mac and Apple Intelligence, but that didn't work. What did work was updating Xcode and the simulators to the latest possible version.
Topic:
Machine Learning & AI
SubTopic:
Foundation Models
2
0
159