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

This commit is contained in:
FlavioInacta authored and GitHub committed 2025-02-26 19:53:33 -08:00
1 parent 7bc02926b4
commit 9449f5dcd1
2 files changed
+6 -1

No files matched your search

+5
View File
@@ -0,0 +1,5 @@
---
"claude-dev": patch
---
Fix checking "Support Images" setting had no effect on first click
@@ -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