Skip to content

Commit

Permalink
change access control for getCompletion
Browse files Browse the repository at this point in the history
  • Loading branch information
eastriverlee committed Jan 27, 2024
1 parent e3a0cd3 commit c11c9e0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Sources/LLM/LLM.swift
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit c11c9e0

Please sign in to comment.