Skip to content

Commit 8c47ffa

Browse files
committed
Better recognization of chat
Signed-off-by: Ettore Di Giacinto <mudler@localai.io>
1 parent 2875a79 commit 8c47ffa

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

core/config/model_config.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -592,7 +592,7 @@ func (c *ModelConfig) HasUsecases(u ModelConfigUsecases) bool {
592592
// This avoids the maintenance burden of updating this list for each new backend - but unfortunately, that's the best option for some services currently.
593593
func (c *ModelConfig) GuessUsecases(u ModelConfigUsecases) bool {
594594
if (u & FLAG_CHAT) == FLAG_CHAT {
595-
if c.TemplateConfig.Chat == "" && c.TemplateConfig.ChatMessage == "" {
595+
if c.TemplateConfig.Chat == "" && c.TemplateConfig.ChatMessage == "" && !c.TemplateConfig.UseTokenizerTemplate {
596596
return false
597597
}
598598
}

0 commit comments

Comments
 (0)