use appropriate tokenizer with mistral completion source

This commit is contained in:
based 2023-12-16 08:47:51 +10:00
parent 5dd2e8cd88
commit 7acb61ab68
1 changed files with 4 additions and 0 deletions

View File

@ -384,6 +384,10 @@ export function getTokenizerModel() {
return claudeTokenizer;
}
if (oai_settings.chat_completion_source == chat_completion_sources.MISTRALAI) {
return mistralTokenizer;
}
// Default to Turbo 3.5
return turboTokenizer;
}