fix: Checking "Support Images" had no effect on first click (#1922)

This commit is contained in:
FlavioInacta 2025-02-27 04:53:33 +01:00 committed by GitHub
parent 7bc02926b4
commit 9449f5dcd1
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
2 changed files with 6 additions and 1 deletions

View file

@ -0,0 +1,5 @@
---
"claude-dev": patch
---
Fix checking "Support Images" setting had no effect on first click

View file

@ -721,7 +721,7 @@ const ApiOptions = ({ showModelOptions, apiErrorMessage, modelIdErrorMessage, is
{modelConfigurationSelected && (
<>
<VSCodeCheckbox
checked={apiConfiguration?.openAiModelInfo?.supportsImages}
checked={!!apiConfiguration?.openAiModelInfo?.supportsImages}
onChange={(e: any) => {
const isChecked = e.target.checked === true
let modelInfo = apiConfiguration?.openAiModelInfo