From 6a98701e61c895bce0d47c8bb41ac177e418cb1a Mon Sep 17 00:00:00 2001 From: Cohee <18619528+Cohee1207@users.noreply.github.com> Date: Fri, 1 Sep 2023 01:58:32 +0300 Subject: [PATCH] Fix unban EOS for Kobold https://github.com/henk717/KoboldAI/commit/565ab8a38f16712d0527f6f64844c05b9f7019e3 --- public/scripts/kai-settings.js | 8 ++++---- server.js | 2 +- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/public/scripts/kai-settings.js b/public/scripts/kai-settings.js index 4dbfc366b..58729b182 100644 --- a/public/scripts/kai-settings.js +++ b/public/scripts/kai-settings.js @@ -25,14 +25,14 @@ export const kai_settings = { mirostat: 0, mirostat_tau: 5.0, mirostat_eta: 0.1, - use_default_badwordids: true, + use_default_badwordsids: true, }; export const kai_flags = { can_use_tokenization: false, can_use_stop_sequence: false, can_use_streaming: false, - can_use_default_badwordids: false, + can_use_default_badwordsids: false, can_use_mirostat: false, }; @@ -118,7 +118,7 @@ export function getKoboldGenerationData(finalPrompt, this_settings, this_amount_ mirostat: kai_flags.can_use_mirostat ? kai_settings.mirostat : 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, - use_default_badwordids: kai_flags.can_use_default_badwordids ? kai_settings.use_default_badwordids : undefined, + use_default_badwordsids: kai_flags.can_use_default_badwordsids ? kai_settings.use_default_badwordsids : undefined, }; return generate_data; } @@ -263,7 +263,7 @@ export function setKoboldFlags(version, koboldVersion) { kai_flags.can_use_stop_sequence = canUseKoboldStopSequence(version); kai_flags.can_use_streaming = canUseKoboldStreaming(koboldVersion); kai_flags.can_use_tokenization = canUseKoboldTokenization(koboldVersion); - kai_flags.can_use_default_badwordids = canUseDefaultBadwordIds(version); + kai_flags.can_use_default_badwordsids = canUseDefaultBadwordIds(version); kai_flags.can_use_mirostat = canUseMirostat(koboldVersion); } diff --git a/server.js b/server.js index 4576e268c..e50fbc6d5 100644 --- a/server.js +++ b/server.js @@ -527,7 +527,7 @@ app.post("/generate", jsonParser, async function (request, response_generate) { typical: request.body.typical, sampler_order: sampler_order, singleline: !!request.body.singleline, - use_default_badwordids: request.body.use_default_badwordids, + use_default_badwordsids: request.body.use_default_badwordsids, mirostat: request.body.mirostat, mirostat_eta: request.body.mirostat_eta, mirostat_tau: request.body.mirostat_tau,