chore: disable turn off local engine llamacpp (#4660)

This commit is contained in:
Faisal Amir 2025-02-17 13:44:00 +07:00 committed by GitHub
parent 1927262b62
commit 929fc579ec
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -64,10 +64,12 @@ const LocalEngineItems = ({ engine }: { engine: InferenceEngine }) => {
</div>
</div>
<div className="flex items-center gap-x-3">
<Switch
checked={!showSettingActiveLocalEngine.includes(engine)}
onChange={() => onSwitchChange(engine)}
/>
{engine !== InferenceEngine.cortex_llamacpp && (
<Switch
checked={!showSettingActiveLocalEngine.includes(engine)}
onChange={() => onSwitchChange(engine)}
/>
)}
<Button
theme="icon"
variant="outline"