mirror of
https://github.com/SillyTavern/SillyTavern.git
synced 2025-04-03 21:51:04 +02:00
#1175 Substitute macro params in KCPP grammar
This commit is contained in:
parent
1838ca1994
commit
9bc3e4e47c
@ -2,6 +2,7 @@ import {
|
|||||||
getRequestHeaders,
|
getRequestHeaders,
|
||||||
saveSettingsDebounced,
|
saveSettingsDebounced,
|
||||||
getStoppingStrings,
|
getStoppingStrings,
|
||||||
|
substituteParams,
|
||||||
} from "../script.js";
|
} from "../script.js";
|
||||||
|
|
||||||
import {
|
import {
|
||||||
@ -123,7 +124,7 @@ export function getKoboldGenerationData(finalPrompt, this_settings, this_amount_
|
|||||||
mirostat_tau: kai_flags.can_use_mirostat ? kai_settings.mirostat_tau : undefined,
|
mirostat_tau: kai_flags.can_use_mirostat ? kai_settings.mirostat_tau : undefined,
|
||||||
mirostat_eta: kai_flags.can_use_mirostat ? kai_settings.mirostat_eta : undefined,
|
mirostat_eta: kai_flags.can_use_mirostat ? kai_settings.mirostat_eta : undefined,
|
||||||
use_default_badwordsids: kai_flags.can_use_default_badwordsids ? kai_settings.use_default_badwordsids : undefined,
|
use_default_badwordsids: kai_flags.can_use_default_badwordsids ? kai_settings.use_default_badwordsids : undefined,
|
||||||
grammar: kai_flags.can_use_grammar ? kai_settings.grammar : undefined,
|
grammar: kai_flags.can_use_grammar ? substituteParams(kai_settings.grammar) : undefined,
|
||||||
};
|
};
|
||||||
return generate_data;
|
return generate_data;
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user