{
- const sourceIcon =
- m.source === "ollama" ? (
-
- ) : (
-
- );
- const sourceLabel =
- m.source === "ollama" ? "Ollama" : "HuggingFace";
- const mlxReady =
- m.source !== "ollama" && isMLXReady(m.model_id);
- const ggufReady =
- m.source !== "ollama" && isGGUFReady(m.model_id);
- return {
- label: (
-
-
+ >
+
+
+
+
+
+
- {m.name}
- {mlxReady && (
-
- MLX
-
- )}
- {ggufReady && (
-
- GGUF
-
- )}
-
- ),
- value: m.id,
- };
- })}
- />
-
-
-
-
+ ),
+ value: m.id,
+ };
+ })}
+ />
+
-
-
-
- {/* macOS Ollama Warning - only show when Ollama backend is selected */}
- {selectedWorker &&
- selectedWorker.os_type === "darwin" &&
- selectedBackend === "ollama" &&
- !selectedWorker.capabilities?.ollama && (
-
-
- This Mac worker does not have Ollama installed. Please
- install it first:
-
-
- brew install ollama{"\n"}
- brew services start ollama
-
-
- After installation, the worker will detect Ollama on the
- next heartbeat.
-
-
- }
- type="error"
- showIcon
- style={{ marginBottom: 16 }}
- />
- )}
-
- {/* macOS Ollama Not Running Warning - only show when Ollama backend is selected */}
- {selectedWorker &&
- selectedWorker.os_type === "darwin" &&
- selectedBackend === "ollama" &&
- selectedWorker.capabilities?.ollama &&
- !selectedWorker.capabilities?.ollama_running && (
-