Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
13 changes: 12 additions & 1 deletion Sources/LocalLLMClientMLX/LLMSession+MLX.swift
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,18 @@ public extension LLMSession.DownloadModel {
destination: URL? = nil,
parameter: MLXClient.Parameter = .default
) -> LLMSession.DownloadModel {
let source = FileDownloader.Source.huggingFace(id: id, globs: .mlx)
.mlx(
source: FileDownloader.Source.huggingFace(id: id, globs: .mlx),
destination: destination,
parameter: parameter
)
}

static func mlx(
source: FileDownloader.Source,
destination: URL? = nil,
parameter: MLXClient.Parameter = .default
) -> LLMSession.DownloadModel {
let rootDestination = destination ?? URL.defaultRootDirectory
return LLMSession.DownloadModel(
source: source,
Expand Down
Loading