Skip to content

Commit

Permalink
fix initializer with template
Browse files Browse the repository at this point in the history
  • Loading branch information
eastriverlee committed Jan 29, 2024
1 parent 9665491 commit 7a3ab0c
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion Sources/LLM/LLM.swift
Original file line number Diff line number Diff line change
Expand Up @@ -134,6 +134,7 @@ open class LLM: ObservableObject {
) {
self.init(
from: url.path,
stopSequence: template.stopSequence,
history: history,
seed: seed,
topK: topK,
Expand All @@ -142,7 +143,7 @@ open class LLM: ObservableObject {
historyLimit: historyLimit,
maxTokenCount: maxTokenCount
)
self.template = template
self.preProcess = template.preProcess
}

private var shouldContinuePredicting = false
Expand Down

0 comments on commit 7a3ab0c

Please sign in to comment.