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 { export interface loadOptions {
modelPath: string modelPath: string
port?: number port?: number
n_ctx?: number
} }
export interface sessionInfo { export interface sessionInfo {

View File

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