mirror of
https://github.com/SillyTavern/SillyTavern.git
synced 2025-06-05 21:59:27 +02:00
Fill tokenizer legacy counts where possible.
This commit is contained in:
@ -703,7 +703,7 @@ function prepareOpenAIMessages({
|
||||
const chat = chatCompletion.getChat();
|
||||
openai_messages_count = chat.filter(x => x?.role === "user" || x?.role === "assistant")?.length || 0;
|
||||
|
||||
return [chat, false];
|
||||
return [chat, promptManager.tokenHandler.counts];
|
||||
}
|
||||
|
||||
function getGroupMembers(activeGroup) {
|
||||
|
Reference in New Issue
Block a user