From 97804e7b4df7031c0dfdf48429e375c6a371ca1f Mon Sep 17 00:00:00 2001 From: ItzCrazyKns <95534749+ItzCrazyKns@users.noreply.github.com> Date: Thu, 20 Mar 2025 12:30:06 +0530 Subject: [PATCH] feat(config): remove unused vars --- sample.config.toml | 1 - src/lib/config.ts | 3 --- 2 files changed, 4 deletions(-) diff --git a/sample.config.toml b/sample.config.toml index 0a800a0..691b964 100644 --- a/sample.config.toml +++ b/sample.config.toml @@ -1,5 +1,4 @@ [GENERAL] -PORT = 3001 # Port to run the server on SIMILARITY_MEASURE = "cosine" # "cosine" or "dot" KEEP_ALIVE = "5m" # How long to keep Ollama models loaded into memory. (Instead of using -1 use "-1m") diff --git a/src/lib/config.ts b/src/lib/config.ts index 9a20ce5..dac1ca5 100644 --- a/src/lib/config.ts +++ b/src/lib/config.ts @@ -6,7 +6,6 @@ const configFileName = 'config.toml'; interface Config { GENERAL: { - PORT: number; SIMILARITY_MEASURE: string; KEEP_ALIVE: string; }; @@ -46,8 +45,6 @@ const loadConfig = () => fs.readFileSync(path.join(process.cwd(), `${configFileName}`), 'utf-8'), ) as any as Config; -export const getPort = () => loadConfig().GENERAL.PORT; - export const getSimilarityMeasure = () => loadConfig().GENERAL.SIMILARITY_MEASURE;