new features

This commit is contained in:
Mark Gregory
2026-11-18 13:55:47 +00:00
parent 17bcf178a9
commit a07ddf4d6d
29 changed files with 3457 additions and 306 deletions
+15 -5
View File
@@ -1,18 +1,24 @@
# AI Studio
Native SwiftUI chat for Apple silicon Macs running macOS 14 or later. Open `AIStudio.xcodeproj` and run the shared **AIStudio** scheme on **My Mac**. Xcode resolves the pinned Swift packages on the first build.
Native SwiftUI chat for Apple silicon Macs running macOS 14 or later. Open `AIStudio.xcodeproj` in Xcode with Swift 6.3 or later and run the shared **AIStudio** scheme on **My Mac**. Xcode resolves the pinned Swift packages on the first build.
## 1. Set up a model
- **GGUF** models run locally. In **Settings → Model Library → On This Mac**, drop a GGUF chat model from Finder or use **Import…**. Choose **Use** to set the default for chat. The library shows architecture, predominant tensor format, file size, selection, and the recommended Metal working set. Bundled llama.cpp runs GGUF chat on Metal without an Ollama service. Models need a supported embedded chat template.
- To download a **GGUF** model, open **Hugging Face · GGUF**, choose **Browse**, search by model name, or enter a public `owner/model` ID. Open a result’s files and choose a standalone download. AI Studio pins the repository revision, shows byte progress and cancellation, validates the available size and checksum, then registers the model. Private or gated repositories and sharded GGUF downloads are outside this workflow.
- **Core ML** chat requires macOS 15 or later. In **Settings → Model Library → On This Mac → Core ML**, download the Apple Mistral model or import a compatible stateful Core ML model with its matching `tokenizer.json` and `tokenizer_config.json` beside it. Choose **Use** or pick the **Core ML** entry in chat. Search lists public Hugging Face model cards. The import currently targets the stateful text-generation contract used by [Apple’s Mistral export](https://huggingface.co/apple/mistral-coreml).
- **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 → 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.
- **MLX:** In **Settings → Model Library**, drop an MLX folder or browse and 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. The composer keeps Thinking visible. Supported MLX and GGUF templates expose Default, Off, and On. Backends that manage thinking themselves show Default. The model button shows the selected backend beside the model name. 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.
**Import LM Studio Library** in **On This Mac** scans `~/.lmstudio/models` for GGUF chat models and MLX folders and registers them in place. Use **Import MLX Models…** to select an individual checkpoint or scan a folder of checkpoints.
Model Library shows red warnings when the model files alone exceed the applicable memory budget or the configured MLX weight limit. Generation also needs memory for its context.
Use **Settings → Agents** to enable or create reusable roles, then turn on **Agents** in the composer. The [Agents guide](Docs/Agents.md) covers setup, model routing, supervised MCP calls, and run limits.
Use the model button in the chat composer to choose an installed Ollama
or MLX model or a model from your compatible API. AI Studio remembers the
Use the model button in the chat composer to choose an installed GGUF, MLX, Core ML, or Ollama model, or a model from your compatible API. AI Studio remembers the
choice for that conversation. **Use Default** returns to the model in Settings.
Use **Resources** beside the model button to select a Knowledge Stack, Skill,
@@ -20,6 +26,10 @@ Context, Web Clip, or Prompt Template for the current chat. **Insert Saved Promp
copies a saved prompt into the composer for editing. Use **Open Workspace** to
manage these resources.
See [Local Model Roadmap](Docs/LOCAL-MODELS.md) for supported families, verification, and the next phase.
Open **Training & Images** from the main window toolbar. **Training** contains the MLX conversion and LoRA workflow with live run output. **Images** opens Apple Image Playground on supported Macs and can preview an existing image or export a PNG preview. [MLX fine-tuning guide](Docs/TRAINING.md) · [Apple Image Playground](https://developer.apple.com/documentation/imageplayground)
## 2. Chat with documents
Use **Documents** in the conversation toolbar to import PDF, UTF-8 text,