refac: num_predict renamed to max_tokens

This commit is contained in:
Timothy J. Baek
2024-05-25 00:58:20 -07:00
parent 1aa33a4667
commit bd6ccf8c15
4 changed files with 14 additions and 14 deletions
@@ -55,7 +55,7 @@
stop: '',
tfs_z: '',
num_ctx: '',
num_predict: ''
max_tokens: ''
};
const toggleRequestFormat = async () => {
@@ -313,7 +313,7 @@
top_p: params.top_p !== '' ? params.top_p : undefined,
tfs_z: params.tfs_z !== '' ? params.tfs_z : undefined,
num_ctx: params.num_ctx !== '' ? params.num_ctx : undefined,
num_predict: params.num_predict !== '' ? params.num_predict : undefined
max_tokens: params.max_tokens !== '' ? params.max_tokens : undefined
},
keepAlive: keepAlive ? (isNaN(keepAlive) ? keepAlive : parseInt(keepAlive)) : undefined
});