Script for easily configuring, using, switching and comparing local offline coding models
1import { log } from "../log.js";
2import { commandExists, runPassthrough } from "../util.js";
3
4export function installOllama(): void {
5 if (commandExists("ollama")) {
6 log("Ollama already installed.");
7 } else {
8 log("Installing Ollama via Homebrew...");
9 runPassthrough("brew install ollama");
10 }
11}