chore: update logic turn on / off mmproj
This commit is contained in:
parent
94dc298181
commit
a5b0ced9a9
@ -314,7 +314,14 @@ export const ImportVisionModelDialog = ({
|
||||
<Switch
|
||||
id="vision-model"
|
||||
checked={isVisionModel}
|
||||
onCheckedChange={setIsVisionModel}
|
||||
onCheckedChange={(checked) => {
|
||||
setIsVisionModel(checked)
|
||||
if (!checked) {
|
||||
setMmProjFile(null)
|
||||
setMmprojValidationError(null)
|
||||
setIsValidatingMmproj(false)
|
||||
}
|
||||
}}
|
||||
className="mt-1"
|
||||
/>
|
||||
</div>
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user