mirror of
https://github.com/SillyTavern/SillyTavern.git
synced 2025-02-09 16:49:01 +01:00
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…
x
Reference in New Issue
Block a user