Skip to content

v1.2.2

Compare
Choose a tag to compare
@eastriverlee eastriverlee released this 27 Jan 10:30
· 39 commits to main since this release

Highlights

  • fixed initializer that takes template:
    public convenience init(
        from url: URL,
        template: Template,
        history: [Chat] = [],
        seed: UInt32 = .random(in: .min ... .max),
        topK: Int32 = 40,
        topP: Float = 0.95,
        temp: Float = 0.8,
        historyLimit: Int = 8,
        maxTokenCount: Int32 = 2048
    ) {
        self.init(
            from: url.path,
            history: history,
            seed: seed,
            topK: topK,
            topP: topP,
            temp: temp,
            historyLimit: historyLimit,
            maxTokenCount: maxTokenCount
        )
        self.template = template
    }

it was only setting stopSequence property, leaving preProcess property.