Skip to content

Commit b8beaaa

Browse files
committed
Remove CoreGraphics dependency on Linux
1 parent 864390e commit b8beaaa

File tree

1 file changed

+4
-5
lines changed

1 file changed

+4
-5
lines changed

Libraries/MLXLMCommon/ChatSession.swift

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,5 @@
11
// Copyright © 2025 Apple Inc.
22

3-
import CoreGraphics
43
import Foundation
54
import MLX
65
import Tokenizers
@@ -47,7 +46,7 @@ public final class ChatSession {
4746
_ model: ModelContainer,
4847
instructions: String? = nil,
4948
generateParameters: GenerateParameters = .init(),
50-
processing: UserInput.Processing = .init(resize: CGSize(width: 512, height: 512)),
49+
processing: UserInput.Processing = .init(resizeWidth: 512, resizeHeight: 512),
5150
tools: [ToolSpec]? = nil,
5251
additionalContext: [String: any Sendable]? = nil
5352
) {
@@ -73,7 +72,7 @@ public final class ChatSession {
7372
_ model: ModelContext,
7473
instructions: String? = nil,
7574
generateParameters: GenerateParameters = .init(),
76-
processing: UserInput.Processing = .init(resize: CGSize(width: 512, height: 512)),
75+
processing: UserInput.Processing = .init(resizeWidth: 512, resizeHeight: 512),
7776
tools: [ToolSpec]? = nil,
7877
additionalContext: [String: any Sendable]? = nil
7978
) {
@@ -101,7 +100,7 @@ public final class ChatSession {
101100
instructions: String? = nil,
102101
history: consuming [Chat.Message],
103102
generateParameters: GenerateParameters = .init(),
104-
processing: UserInput.Processing = .init(resize: CGSize(width: 512, height: 512)),
103+
processing: UserInput.Processing = .init(resizeWidth: 512, resizeHeight: 512),
105104
tools: [ToolSpec]? = nil,
106105
additionalContext: [String: any Sendable]? = nil
107106
) {
@@ -130,7 +129,7 @@ public final class ChatSession {
130129
instructions: String? = nil,
131130
history: [Chat.Message],
132131
generateParameters: GenerateParameters = .init(),
133-
processing: UserInput.Processing = .init(resize: CGSize(width: 512, height: 512)),
132+
processing: UserInput.Processing = .init(resizeWidth: 512, resizeHeight: 512),
134133
tools: [ToolSpec]? = nil,
135134
additionalContext: [String: any Sendable]? = nil
136135
) {

0 commit comments

Comments
 (0)