support dreamgen non-streaming

This commit is contained in:
DreamGenX 2024-03-08 08:32:47 +01:00
parent ff7c250946
commit bf787a9445
1 changed files with 0 additions and 2 deletions

View File

@ -281,8 +281,6 @@ router.post('/generate', jsonParser, async function (request, response) {
if (request.body.api_type === TEXTGEN_TYPES.DREAMGEN) {
request.body = _.pickBy(request.body, (_, key) => DREAMGEN_KEYS.includes(key));
// NOTE: DreamGen currently only supports streaming.
request.body.stream = true;
// NOTE: DreamGen sometimes get confused by the unusual formatting in the character cards.
request.body.stop?.push('### User', '## User');
args.body = JSON.stringify(request.body);