mirror of
https://github.com/SillyTavern/SillyTavern.git
synced 2025-06-05 21:59:27 +02:00
Support Qwen tokenizer fro Groq
This commit is contained in:
@@ -694,6 +694,9 @@ export function getTokenizerModel() {
|
|||||||
}
|
}
|
||||||
|
|
||||||
if (oai_settings.chat_completion_source === chat_completion_sources.GROQ) {
|
if (oai_settings.chat_completion_source === chat_completion_sources.GROQ) {
|
||||||
|
if (oai_settings.groq_model.includes('qwen')) {
|
||||||
|
return qwen2Tokenizer;
|
||||||
|
}
|
||||||
if (oai_settings.groq_model.includes('llama-3') || oai_settings.groq_model.includes('llama3')) {
|
if (oai_settings.groq_model.includes('llama-3') || oai_settings.groq_model.includes('llama3')) {
|
||||||
return llama3Tokenizer;
|
return llama3Tokenizer;
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user