mirror of
https://github.com/SillyTavern/SillyTavern.git
synced 2025-06-05 21:59:27 +02:00
Merge branch 'dev' of https://github.com/Cohee1207/SillyTavern into dev
This commit is contained in:
@ -1637,10 +1637,13 @@ class StreamingProcessor {
|
|||||||
let isName = result.this_mes_is_name;
|
let isName = result.this_mes_is_name;
|
||||||
processedText = result.getMessage;
|
processedText = result.getMessage;
|
||||||
|
|
||||||
// Predict unbalanced asterisks during streaming
|
// Predict unbalanced asterisks / quotes during streaming
|
||||||
if (!isFinal && isOdd(countOccurrences(processedText, '*'))) {
|
const charsToBalance = ['*', '"'];
|
||||||
// Add asterisk at the end to balance it
|
for (const char of charsToBalance) {
|
||||||
processedText = processedText.trimEnd() + '*';
|
if (!isFinal && isOdd(countOccurrences(processedText, char))) {
|
||||||
|
// Add character at the end to balance it
|
||||||
|
processedText = processedText.trimEnd() + char;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
if (isImpersonate) {
|
if (isImpersonate) {
|
||||||
|
@ -1134,6 +1134,11 @@ function trySelectPresetByName(name) {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// Don't change if the current preset is the same
|
||||||
|
if (preset_found && preset_found === oai_settings.preset_settings_openai) {
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
|
||||||
if (preset_found) {
|
if (preset_found) {
|
||||||
oai_settings.preset_settings_openai = preset_found;
|
oai_settings.preset_settings_openai = preset_found;
|
||||||
const value = openai_setting_names[preset_found]
|
const value = openai_setting_names[preset_found]
|
||||||
|
@ -1546,6 +1546,10 @@ input[type=search]:focus::-webkit-search-cancel-button {
|
|||||||
align-items: center;
|
align-items: center;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
grammarly-extension {
|
||||||
|
z-index: 35;
|
||||||
|
}
|
||||||
|
|
||||||
.avatar-container:hover .avatar-buttons {
|
.avatar-container:hover .avatar-buttons {
|
||||||
display: flex;
|
display: flex;
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user