Repository navigation
Conversation
mlx-swift-lm main (merged into PR SharpAI/mlx-swift-lm#125) adds Generation.steering and GenerateStopReason.steered/.interrupted. The SwiftLM server never enables steering, so the new cases are no-ops, and steered/interrupted map to "stop" like cancelled does. Without this, Sources/SwiftLM/Server.swift fails "switch must be exhaustive" against the merged library (CI SwiftLM integration job). Verified: swift build --target SwiftLM passes against the merged mlx-swift-lm (sync/upstream-4c21c84-merge). Co-Authored-By: Claude Haiku 5.5 <noreply@anthropic.com>
CI build_and_unit_test failed: SwiftLM builds against its pinned mlx-swift-lm (69346d0e), which has no Generation.steering, so the `case .steering` added in the previous commit does not compile there. The Generation switches already have a `default:` that covers steering, so they need nothing. Only the two stop-reason switches must change, and `@unknown default` covers GenerateStopReason.steered/.interrupted on the merged library without naming them, so the file compiles against both the pin and the merged mlx-swift-lm. Verified: swift build --target SwiftLM passes against the old pin (69346d0e) and against sync/upstream-4c21c84-merge. Co-Authored-By: Claude Haiku 5.5 <noreply@anthropic.com>
This branch has not been deployed
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
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
mlx-swift-lm main (merged into SharpAI/mlx-swift-lm#125) adds
Generation.steeringandGenerateStopReason.steered/.interrupted. The SwiftLM server never enables steering, so:.steeringis a no-op in the Generation switches..steeredand.interruptedmap to"stop", like.cancelled.This is needed for SwiftLM's integration job (CI SwiftLM, sealed offline) to compile against mlx-swift-lm #125. That job checks out SharpAI/SwiftLM main, so this PR must merge before #125's SwiftLM job can pass.
Verification
swift build --target SwiftLMpasses against the merged mlx-swift-lm (sync/upstream-4c21c84-merge).🤖 Generated with Claude Code