Update LocalInference to use public repos

This commit is contained in:
Dalton Flanagan 2024-09-25 11:05:03 -07:00
parent 4fcda00872
commit b3b0349931
19 changed files with 22 additions and 1093 deletions

View file

@ -0,0 +1,12 @@
import Foundation
import Stencil
public struct PromptTemplate {
let template: String
let data: [String: Any]
public func render() throws -> String {
let template = Template(templateString: self.template)
return try template.render(self.data)
}
}