remove ununsed imports and remove n_ctx key from loadOptions

This commit is contained in:
Akarshan Biswas 2025-05-28 07:29:10 +05:30 committed by Louis
parent 77d861f56f
commit 7481fae0df
No known key found for this signature in database
GPG Key ID: 44FA9F4D33C37DE2
2 changed files with 1 additions and 4 deletions

View File

@ -103,7 +103,6 @@ export type listResult = modelInfo[]
export interface loadOptions {
modelPath: string
port?: number
n_ctx?: number
}
export interface sessionInfo {

View File

@ -14,9 +14,7 @@ import {
modelInfo,
loadOptions,
sessionInfo,
unloadOptions,
unloadResult,
chatOptions,
chatCompletion,
chatCompletionChunk,
ImportOptions,
@ -316,7 +314,7 @@ export default class llamacpp_extension extends AIEngine {
args.push('--port', String(opts.port || 8080)) // Default port if not specified
if (opts.n_ctx !== undefined) {
args.push('-c', String(opts.n_ctx))
args.push('-c', String(cfg.ctx_size))
}
// Add remaining options from the interface