MNN/apps/iOS/MNNLLMChat/MNNLLMiOS/MainTab/Services/Source/ModelSource.swift

28 lines
703 B
Swift
Raw Normal View History

//
2025-07-10 14:45:59 +08:00
// ModelSource.swift
// MNNLLMiOS
//
// Created by () on 2025/2/20.
//
import Foundation
2025-06-30 16:07:04 +08:00
public enum ModelSource: String, CaseIterable, Identifiable {
case modelScope = "ModelScope"
2025-07-04 17:15:47 +08:00
case huggingFace = "HuggingFace"
2025-03-05 19:44:14 +08:00
case modeler = "Modeler"
2025-06-30 16:07:04 +08:00
public var id: Self { self }
var description: String {
switch self {
case .modelScope:
2025-03-05 19:44:14 +08:00
return NSLocalizedString("Use ModelScope to download", comment: "")
case .modeler:
return NSLocalizedString("Use modeler to download", comment: "")
case .huggingFace:
2025-03-05 19:44:14 +08:00
return NSLocalizedString("Use HuggingFace to download", comment: "")
}
}
}