mirror of
https://github.com/SillyTavern/SillyTavern.git
synced 2025-06-05 21:59:27 +02:00
Add Kobold tokenization to best match logic. Fix not being able to stop group chat regeneration
This commit is contained in:
@ -8,6 +8,7 @@ import {
|
||||
getKoboldGenerationData,
|
||||
canUseKoboldStopSequence,
|
||||
canUseKoboldStreaming,
|
||||
canUseKoboldTokenization,
|
||||
} from "./scripts/kai-settings.js";
|
||||
|
||||
import {
|
||||
@ -783,6 +784,7 @@ async function getStatus() {
|
||||
if (main_api === "kobold" || main_api === "koboldhorde") {
|
||||
kai_settings.use_stop_sequence = canUseKoboldStopSequence(data.version);
|
||||
kai_settings.can_use_streaming = canUseKoboldStreaming(data.koboldVersion);
|
||||
kai_settings.can_use_tokenization = canUseKoboldTokenization(data.koboldVersion);
|
||||
}
|
||||
|
||||
// We didn't get a 200 status code, but the endpoint has an explanation. Which means it DID connect, but I digress.
|
||||
@ -4007,6 +4009,10 @@ export function setMenuType(value) {
|
||||
menu_type = value;
|
||||
}
|
||||
|
||||
export function setExternalAbortController(controller) {
|
||||
abortController = controller;
|
||||
}
|
||||
|
||||
function setCharacterId(value) {
|
||||
this_chid = value;
|
||||
}
|
||||
|
Reference in New Issue
Block a user