Created
November 10, 2025 11:42
-
-
Save reishoku/08c368980bf8b68509ab4d84bab0a88e to your computer and use it in GitHub Desktop.
FoundationModels framework
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| import Foundation | |
| import FoundationModels | |
| let session = LanguageModelSession() | |
| let res = session.streamResponse(to: "Hello!") | |
| for try await p in res { | |
| print(p.content) | |
| } |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment