mirror of
https://github.com/SillyTavern/SillyTavern.git
synced 2025-06-05 21:59:27 +02:00
implement messages api and selector for nuclaude models
This commit is contained in:
@ -249,6 +249,7 @@ async function loadClaudeTokenizer(modelPath) {
|
||||
}
|
||||
|
||||
function countClaudeTokens(tokenizer, messages) {
|
||||
// Should be fine if we use the old conversion method instead of the messages API one i think?
|
||||
const convertedPrompt = convertClaudePrompt(messages, false, false, false);
|
||||
|
||||
// Fallback to strlen estimation
|
||||
|
Reference in New Issue
Block a user