Skip to content

Make SystemLanguageModel a struct - #258

Merged
mattt merged 1 commit into
mainfrom
mattt/system-model-struct
Sep 17, 2026
Merged

mattt merged 1 commit into
mainfrom
mattt/system-model-struct

Conversation

@mattt

@mattt mattt commented Sep 17, 2026

Copy link
Copy Markdown
Collaborator

SystemLanguageModel holds one immutable reference to Apple's model and has no mutable state for actor isolation to protect. This changes it to a Sendable struct, matching PrivateCloudComputeLanguageModel, removes the ten unnecessary nonisolated modifiers, and makes default a stored static let.

@mattt
mattt merged commit 29c7d26 into main Sep 17, 2026
12 checks passed
@mattt
mattt deleted the mattt/system-model-struct branch September 17, 2026 11:43
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant