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> </div>
<div className="flex items-center gap-x-3"> <div className="flex items-center gap-x-3">
{engine !== InferenceEngine.cortex_llamacpp && (
<Switch <Switch
checked={!showSettingActiveLocalEngine.includes(engine)} checked={!showSettingActiveLocalEngine.includes(engine)}
onChange={() => onSwitchChange(engine)} onChange={() => onSwitchChange(engine)}
/> />
)}
<Button <Button
theme="icon" theme="icon"
variant="outline" variant="outline"