From c11c9e07a1b64c9ab771b4acc848744d13b34a33 Mon Sep 17 00:00:00 2001 From: eastriver Date: Sat, 27 Jan 2024 10:12:59 +0900 Subject: [PATCH] change access control for getCompletion --- Sources/LLM/LLM.swift | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Sources/LLM/LLM.swift b/Sources/LLM/LLM.swift index d8ac6b5..a3caf3e 100644 --- a/Sources/LLM/LLM.swift +++ b/Sources/LLM/LLM.swift @@ -262,7 +262,7 @@ open class LLM: ObservableObject { private var input: String = "" private var isAvailable = true - public func getCompletion(from input: borrowing String) async -> String { + open func getCompletion(from input: borrowing String) async -> String { guard isAvailable else { fatalError("LLM is being used") } isAvailable = false let response = getResponse(from: input)