Skip to content

Commit 0fe0b76

Browse files
committed
fix: fixes #809 keystroke delays in Provider Settings
1 parent 6037140 commit 0fe0b76

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

webview-ui/src/components/settings/ApiOptions.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -571,15 +571,15 @@ const ApiOptions = ({ apiErrorMessage, modelIdErrorMessage }: ApiOptionsProps) =
571571
value={apiConfiguration?.openAiBaseUrl || ""}
572572
style={{ width: "100%" }}
573573
type="url"
574-
onInput={handleInputChange("openAiBaseUrl")}
574+
onChange={handleInputChange("openAiBaseUrl")}
575575
placeholder={"Enter base URL..."}>
576576
<span style={{ fontWeight: 500 }}>Base URL</span>
577577
</VSCodeTextField>
578578
<VSCodeTextField
579579
value={apiConfiguration?.openAiApiKey || ""}
580580
style={{ width: "100%" }}
581581
type="password"
582-
onInput={handleInputChange("openAiApiKey")}
582+
onChange={handleInputChange("openAiApiKey")}
583583
placeholder="Enter API Key...">
584584
<span style={{ fontWeight: 500 }}>API Key</span>
585585
</VSCodeTextField>

0 commit comments

Comments
 (0)