spb/zyquo-atlas Public License
The AI-native macOS web browser — every surface, intelligent.
Swift 75.2%
JavaScript 22%
Shell 2%
Makefile 0.9%
1//2// ChatParameters.swift3// Zyquo Atlas4//5// Author: Simon-Pierre Boucher6// Mail: contact@spboucher.ai7//8// Provider-agnostic generation parameters (extracted from Zyquo Cloud's9// Conversation.swift so the provider layer ports without the conversation10// types). `nil` means "provider default" and the parameter is omitted from11// the request entirely.12//1314import Foundation1516struct ChatParameters: Codable, Hashable {17 var temperature: Double?18 var topP: Double?19 var maxTokens: Int?20 var frequencyPenalty: Double?21 var presencePenalty: Double?22 /// "low" / "medium" / "high" for models supporting reasoning_effort.23 var reasoningEffort: String?24 /// Explicit thinking toggle for Anthropic/Qwen-style models.25 var thinkingEnabled: Bool?2627 init(temperature: Double? = nil,28 topP: Double? = nil,29 maxTokens: Int? = nil,30 frequencyPenalty: Double? = nil,31 presencePenalty: Double? = nil,32 reasoningEffort: String? = nil,33 thinkingEnabled: Bool? = nil) {34 self.temperature = temperature35 self.topP = topP36 self.maxTokens = maxTokens37 self.frequencyPenalty = frequencyPenalty38 self.presencePenalty = presencePenalty39 self.reasoningEffort = reasoningEffort40 self.thinkingEnabled = thinkingEnabled41 }42}43