Return type casts where they were

This commit is contained in:
Cohee
2025-02-25 22:12:22 +02:00
parent 11d56a407d
commit 861c502e44
5 changed files with 11 additions and 11 deletions

View File

@@ -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, 'number');
const numBatch = getConfigValue('ollama.batchSize', -1, 'number');
const keepAlive = Number(getConfigValue('ollama.keepAlive', -1, 'number'));
const numBatch = Number(getConfigValue('ollama.batchSize', -1, 'number'));
if (numBatch > 0) {
request.body['num_batch'] = numBatch;
}