mirror of
				https://github.com/SillyTavern/SillyTavern.git
				synced 2025-06-05 21:59:27 +02:00 
			
		
		
		
	Merge branch 'release' into InfermaticAI
This commit is contained in:
		| @@ -263,11 +263,7 @@ router.post('/generate', jsonParser, async function (request, response) { | ||||
|         setAdditionalHeaders(request, args, baseUrl); | ||||
|  | ||||
|         if (request.body.api_type === TEXTGEN_TYPES.TOGETHERAI) { | ||||
|             const stop = Array.isArray(request.body.stop) ? request.body.stop[0] : ''; | ||||
|             request.body = _.pickBy(request.body, (_, key) => TOGETHERAI_KEYS.includes(key)); | ||||
|             if (typeof stop === 'string' && stop.length > 0) { | ||||
|                 request.body.stop = stop; | ||||
|             } | ||||
|             args.body = JSON.stringify(request.body); | ||||
|         } | ||||
|  | ||||
|   | ||||
		Reference in New Issue
	
	Block a user