From 766a4e8e8a64033bdf633dfbd5da120ffc290387 Mon Sep 17 00:00:00 2001 From: Faisal Amir Date: Thu, 7 Nov 2024 16:47:50 +0700 Subject: [PATCH] fix: right panel bg joi-dark and remove n_pararell params (#3970) --- themes/joi-dark/theme.json | 2 +- web/screens/Settings/Advanced/index.tsx | 1 + web/utils/predefinedComponent.ts | 15 --------------- 3 files changed, 2 insertions(+), 16 deletions(-) diff --git a/themes/joi-dark/theme.json b/themes/joi-dark/theme.json index 22ed778bac..c299e3b1e9 100644 --- a/themes/joi-dark/theme.json +++ b/themes/joi-dark/theme.json @@ -64,7 +64,7 @@ }, "right-panel": { - "bg": "0, 0%, 13%, 0" + "bg": "0, 0%, 13%, 1" }, "tooltip": { diff --git a/web/screens/Settings/Advanced/index.tsx b/web/screens/Settings/Advanced/index.tsx index 475cc4d588..50e2a72a6e 100644 --- a/web/screens/Settings/Advanced/index.tsx +++ b/web/screens/Settings/Advanced/index.tsx @@ -209,6 +209,7 @@ const Advanced = () => { } setGpusInUse(updatedGpusInUse) saveSettings({ gpusInUse: updatedGpusInUse }) + window.core?.api?.relaunch() } const gpuSelectionPlaceHolder = diff --git a/web/utils/predefinedComponent.ts b/web/utils/predefinedComponent.ts index 82087f43b9..3a9f45e923 100644 --- a/web/utils/predefinedComponent.ts +++ b/web/utils/predefinedComponent.ts @@ -145,21 +145,6 @@ export const presetConfiguration: Record = { requireModelReload: false, configType: 'runtime', }, - n_parallel: { - key: 'n_parallel', - title: 'N Parallel', - description: - 'The number of parallel operations. Only set when enable continuous batching. ', - controllerType: 'slider', - controllerProps: { - min: 0, - max: 4, - step: 1, - value: 1, - }, - requireModelReload: true, - configType: 'setting', - }, cpu_threads: { key: 'cpu_threads', title: 'CPU Threads',