mirror of
https://github.com/SillyTavern/SillyTavern.git
synced 2025-06-05 21:59:27 +02:00
Revert "Send abort signal to koboldcpp server on abort."
This reverts commits0cf9d8895c
andee8b60b5fc
.
This commit is contained in:
@ -26,8 +26,6 @@ const kai_settings = {
|
|||||||
single_line: false,
|
single_line: false,
|
||||||
use_stop_sequence: false,
|
use_stop_sequence: false,
|
||||||
streaming_kobold: false,
|
streaming_kobold: false,
|
||||||
can_use_streaming: false,
|
|
||||||
api_server: 'http://0.0.0.0:5000',
|
|
||||||
};
|
};
|
||||||
|
|
||||||
const MIN_STOP_SEQUENCE_VERSION = '1.2.2';
|
const MIN_STOP_SEQUENCE_VERSION = '1.2.2';
|
||||||
@ -64,15 +62,10 @@ function loadKoboldSettings(preset) {
|
|||||||
kai_settings.single_line = preset.single_line;
|
kai_settings.single_line = preset.single_line;
|
||||||
$('#single_line').prop('checked', kai_settings.single_line);
|
$('#single_line').prop('checked', kai_settings.single_line);
|
||||||
}
|
}
|
||||||
|
|
||||||
if (preset.hasOwnProperty('streaming_kobold')) {
|
if (preset.hasOwnProperty('streaming_kobold')) {
|
||||||
kai_settings.streaming_kobold = preset.streaming_kobold;
|
kai_settings.streaming_kobold = preset.streaming_kobold;
|
||||||
$('#streaming_kobold').prop('checked', kai_settings.streaming_kobold);
|
$('#streaming_kobold').prop('checked', kai_settings.streaming_kobold);
|
||||||
}
|
}
|
||||||
|
|
||||||
if (preset.hasOwnProperty('api_server')) {
|
|
||||||
kai_settings.api_server = preset.api_server;
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
||||||
function getKoboldGenerationData(finalPromt, this_settings, this_amount_gen, this_max_context, isImpersonate) {
|
function getKoboldGenerationData(finalPromt, this_settings, this_amount_gen, this_max_context, isImpersonate) {
|
||||||
@ -246,12 +239,4 @@ $(document).ready(function () {
|
|||||||
kai_settings.streaming_kobold = value;
|
kai_settings.streaming_kobold = value;
|
||||||
saveSettingsDebounced();
|
saveSettingsDebounced();
|
||||||
});
|
});
|
||||||
|
|
||||||
$('#mes_stop').on("click", async function () {
|
|
||||||
if (kai_settings.streaming_kobold && kai_settings.can_use_streaming) {
|
|
||||||
await fetch(`${kai_settings.api_server}/extra/abort`, {
|
|
||||||
method: 'POST'
|
|
||||||
});
|
|
||||||
}
|
|
||||||
});
|
|
||||||
});
|
});
|
||||||
|
Reference in New Issue
Block a user