mirror of
https://github.com/SillyTavern/SillyTavern.git
synced 2025-06-05 21:59:27 +02:00
Determine if stop_sequence could be used. Closes #93
This commit is contained in:
@ -6,6 +6,7 @@ import {
|
||||
loadKoboldSettings,
|
||||
formatKoboldUrl,
|
||||
getKoboldGenerationData,
|
||||
canUseKoboldStopSequence,
|
||||
} from "./scripts/kai-settings.js";
|
||||
|
||||
import {
|
||||
@ -518,6 +519,11 @@ async function getStatus() {
|
||||
is_pygmalion = false;
|
||||
}
|
||||
|
||||
// determine if we can use stop sequence
|
||||
if (main_api == "kobold") {
|
||||
kai_settings.use_stop_sequence = canUseKoboldStopSequence(data.version);
|
||||
}
|
||||
|
||||
// determine if streaming is enabled for ooba
|
||||
if (main_api == 'textgenerationwebui' && typeof data.gradio_config == 'string') {
|
||||
try {
|
||||
|
Reference in New Issue
Block a user