SPB Git

spb/zyquo-local Public MIT

Native macOS AI chat that runs LLMs 100% locally on Apple Silicon with MLX — no cloud, no API keys.

Swift 97.2% Shell 1.8% Makefile 1%
803 B · 34 lines swift
Raw Blame History
1//2//  Persona.swift3//  Zyquo Local4//5//  Author: Simon-Pierre Boucher6//  Mail: contact@spboucher.ai7//89import Foundation1011/// A reusable persona: system prompt + preferred model + parameters.12struct Persona: Identifiable, Codable, Hashable, Sendable {13    var id: UUID14    var name: String15    var systemPrompt: String16    /// Preferred model repo ID; nil = whatever is loaded.17    var preferredModelID: String?18    var params: GenerationParams?1920    init(21        id: UUID = UUID(),22        name: String,23        systemPrompt: String,24        preferredModelID: String? = nil,25        params: GenerationParams? = nil26    ) {27        self.id = id28        self.name = name29        self.systemPrompt = systemPrompt30        self.preferredModelID = preferredModelID31        self.params = params32    }33}34