mirror of
https://github.com/SillyTavern/SillyTavern.git
synced 2025-06-05 21:59:27 +02:00
Add config value type converters for numbers and booleans
This commit is contained in:
@@ -372,8 +372,8 @@ router.post('/generate', jsonParser, async function (request, response) {
|
||||
}
|
||||
|
||||
if (request.body.api_type === TEXTGEN_TYPES.OLLAMA) {
|
||||
const keepAlive = getConfigValue('ollama.keepAlive', -1);
|
||||
const numBatch = getConfigValue('ollama.batchSize', -1);
|
||||
const keepAlive = getConfigValue('ollama.keepAlive', -1, 'number');
|
||||
const numBatch = getConfigValue('ollama.batchSize', -1, 'number');
|
||||
if (numBatch > 0) {
|
||||
request.body['num_batch'] = numBatch;
|
||||
}
|
||||
|
Reference in New Issue
Block a user