support dreamgen non-streaming
This commit is contained in:
parent
ff7c250946
commit
bf787a9445
|
@ -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);
|
||||
|
|
Loading…
Reference in New Issue