If checking for proper ctx_len settings after refactoring

This commit is contained in:
Akarshan Biswas 2025-05-29 08:41:07 +05:30 committed by Louis
parent 39bb3f34d6
commit d6edb1e944
No known key found for this signature in database
GPG Key ID: 44FA9F4D33C37DE2

View File

@ -306,7 +306,7 @@ export default class llamacpp_extension extends AIEngine {
args.push('-m', opts.modelPath)
args.push('--port', String(opts.port || 8080)) // Default port if not specified
if (opts.n_ctx !== undefined) {
if (cfg.ctx_size !== undefined) {
args.push('-c', String(cfg.ctx_size))
}