Adds support for StarChat for autocomplete (#847)

Updates the handling of template generation to treat StarChat models the same as StarCoder models.
This commit is contained in:
Aaron Alexander 2024-02-12 15:02:29 -05:00 • committed by GitHub
parent 808af46182
commit 53c591f8d0
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -49,6 +49,7 @@ export function getTemplateForModel(model: string): AutocompleteTemplate {
if (
lowerCaseModel.includes("starcoder") ||
lowerCaseModel.includes("star-coder") ||
lowerCaseModel.includes("starchat") ||
lowerCaseModel.includes("stable")
) {
return stableCodeFimTemplate;