mirror of
https://github.com/SillyTavern/SillyTavern.git
synced 2025-06-05 21:59:27 +02:00
support dreamgen non-streaming
This commit is contained in:
@ -281,8 +281,6 @@ router.post('/generate', jsonParser, async function (request, response) {
|
|||||||
|
|
||||||
if (request.body.api_type === TEXTGEN_TYPES.DREAMGEN) {
|
if (request.body.api_type === TEXTGEN_TYPES.DREAMGEN) {
|
||||||
request.body = _.pickBy(request.body, (_, key) => DREAMGEN_KEYS.includes(key));
|
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.
|
// NOTE: DreamGen sometimes get confused by the unusual formatting in the character cards.
|
||||||
request.body.stop?.push('### User', '## User');
|
request.body.stop?.push('### User', '## User');
|
||||||
args.body = JSON.stringify(request.body);
|
args.body = JSON.stringify(request.body);
|
||||||
|
Reference in New Issue
Block a user