Browse MLX and Ollama catalogs in a unified model library
This commit is contained in:
@@ -220,6 +220,18 @@ final class ExpandedStudioTests: XCTestCase {
|
||||
XCTAssertNoThrow(try HTTPMCPClient.arguments(Data(#"{"q":"example"}"#.utf8)))
|
||||
}
|
||||
|
||||
func testLiveModelCatalogsBrowseAndSearch() async throws {
|
||||
guard ProcessInfo.processInfo.environment["AISTUDIO_TEST_LIVE_CATALOGS"] == "1" else {
|
||||
throw XCTSkip("Enable live catalog checks explicitly.")
|
||||
}
|
||||
let mlx = try await CatalogModel.search("")
|
||||
let ollama = try await OllamaCatalog.search("")
|
||||
let qwen = try await OllamaCatalog.search("qwen")
|
||||
XCTAssertFalse(mlx.isEmpty)
|
||||
XCTAssertFalse(ollama.isEmpty)
|
||||
XCTAssertTrue(qwen.contains { $0.hasPrefix("qwen") })
|
||||
}
|
||||
|
||||
func testHuggingFaceCatalogRejectsNonModelFilesAndAdapters() throws {
|
||||
let data = Data("""
|
||||
[{"id":"mlx-community/Test-4bit","sha":"aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa",
|
||||
|
||||
Reference in New Issue
Block a user