Add single-line mode for Kobold

This commit is contained in:
SillyLossy
2023-03-20 00:31:12 +02:00
parent 6177985340
commit 15edcbb4ac
6 changed files with 43 additions and 7 deletions

View File

@ -238,7 +238,8 @@ app.post("/generate", jsonParser, async function (request, response_generate = r
use_memory: false,
use_authors_note: false,
use_world_info: false,
max_context_length: request.body.max_context_length
max_context_length: request.body.max_context_length,
singleline: !!request.body.singleline,
//temperature: request.body.temperature,
//max_length: request.body.max_length
};
@ -262,7 +263,8 @@ app.post("/generate", jsonParser, async function (request, response_generate = r
top_k: request.body.top_k,
top_p: request.body.top_p,
typical: request.body.typical,
sampler_order: sampler_order
sampler_order: sampler_order,
singleline: !!request.body.singleline,
};
}