Skip to content

Fix Swift 6 Sendable error in Llama3ToolCallParser - #203

Merged
davidkoski merged 1 commit into
ml-explore:mainfrom
Lakr233:codex/fix-llama3-sendable
Apr 10, 2026
Merged

davidkoski merged 1 commit into
ml-explore:mainfrom
Lakr233:codex/fix-llama3-sendable

Conversation

@Lakr233

@Lakr233 Lakr233 commented Apr 10, 2026

Copy link
Copy Markdown
Contributor

Summary

  • preserve decoded JSON arguments as JSONValue when building ToolCall.Function
  • add a direct ToolCall.Function initializer for [String: JSONValue]
  • fix Swift 6 Sendable build failures in Llama3ToolCallParser

Testing

  • xcodebuild -workspace FlowDown.xcworkspace -scheme FlowDown -configuration Release -destination 'generic/platform=iOS' build | xcbeautify -qq

Written by Codex.

Avoid converting decoded JSON arguments through Any before constructing ToolCall.Function.\n\nThis fixes Swift 6 Sendable compilation errors in Llama3ToolCallParser during Release iOS builds.\n\nWritten by Codex.

@davidkoski davidkoski left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Changes look good, thank you!

Just waiting on CI

@davidkoski
davidkoski merged commit 7f169f9 into ml-explore:main Apr 10, 2026
3 checks passed
viktike pushed a commit to viktike/mlx-swift-lm that referenced this pull request Apr 11, 2026
Avoid converting decoded JSON arguments through Any before constructing ToolCall.Function.\n\nThis fixes Swift 6 Sendable compilation errors in Llama3ToolCallParser during Release iOS builds.\n\nWritten by Codex.
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.

2 participants