Browse MLX and Ollama catalogs in a unified model library

This commit is contained in:
Mark Gregory
2026-11-17 09:20:58 +00:00
parent 0f1ce5f512
commit 1d5edbc292
6 changed files with 181 additions and 35 deletions
+2 -2
View File
@@ -6,7 +6,7 @@ Native SwiftUI chat for Apple silicon Macs running macOS 14 or later. Open `AISt
- **Ollama:** In **Settings → Models**, refresh the installed list and select a tag. The default server is `http://127.0.0.1:11434`. Use the same pane to pull, inspect, and delete models. Enter a remote HTTP or HTTPS base URL to use another server. The optional bearer token stays in memory and requires HTTPS for remote servers.
- **OpenAI-compatible:** In **Settings → Models**, choose the compatible backend, enter the API base URL (for example `http://127.0.0.1:1234/v1` for LM Studio), then refresh models and select the exact model ID. Remote URLs require HTTPS. An optional bearer token stays in memory and is cleared when the endpoint changes. The server manages model loading. Chat Completions streams the reply and any separately reported reasoning.
- **MLX:** In **Settings → MLX Library**, search Hugging Face for public MLX Community checkpoints or browse the recommended models. Download a checkpoint and choose **Load Model** to load it for on-device inference. **Settings → Models** also accepts a local model folder with configuration, tokenizer files, and safetensors weights. **Prefer Ollama** can fall back to the configured MLX folder when Ollama fails before emitting output.
- **MLX:** In **Settings → Model Library**, browse or search Hugging Face for public MLX Community text-generation checkpoints. Switch to **Ollama** for models installed on your server and the public Ollama catalog. Download a checkpoint and choose **Load Model** to load it for on-device inference. **Settings → Models** also accepts a local model folder with configuration, tokenizer files, and safetensors weights. **Prefer Ollama** can fall back to the configured MLX folder when Ollama fails before emitting output.
- **Thinking:** The composer sends Boolean or named effort settings to Ollama. Supported MLX templates expose Default, Off, and On. Reported reasoning appears in an expandable section. If an Ollama request is interrupted after emitting text, reasoning, or a tool call, the router keeps that backend. **Stop** cancels generation and retains any partial output.
## 2. Chat with documents
@@ -82,7 +82,7 @@ Return sends and Shift–Return inserts a newline. **Settings → Appearance**
controls workspace mode, theme, accent, typography, spell checking and
automatic correction. **Settings → Workspace Data** exports the SQLite
workspace and restores an AI Studio backup after confirmation. Backup
reminders appear in that panel. **Settings → MLX Library** downloads catalog
reminders appear in that panel. **Settings → Model Library** downloads catalog
models, registers existing local MLX folders, and scans a selected library
folder for compatible checkpoints. Settings → Models lists Ollama models
as rows with direct selection controls.