Skip to content

Commit 38c3715

Browse files
authored
fix UserInput init regression when passing images or videos (#298)
1 parent fc0be87 commit 38c3715

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

Libraries/MLXLMCommon/UserInput.swift

+2
Original file line numberDiff line numberDiff line change
@@ -227,6 +227,8 @@ public struct UserInput: Sendable {
227227
additionalContext: [String: Any]? = nil
228228
) {
229229
self.prompt = .messages(messages)
230+
self.images = images
231+
self.videos = videos
230232
self.tools = tools
231233
self.additionalContext = additionalContext
232234
}

0 commit comments

Comments
 (0)