Skip to content

Commit f3d0203

Browse files
committed
Fix: Input/output prices should be parsed using parseFloat
1 parent ebe294b commit f3d0203

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
@@ -900,7 +900,7 @@ const ApiOptions = ({
900900
}}
901901
onChange={handleInputChange("openAiCustomModelInfo", (e) => {
902902
const value = (e.target as HTMLInputElement).value
903-
const parsed = parseInt(value)
903+
const parsed = parseFloat(value)
904904
return {
905905
...(apiConfiguration?.openAiCustomModelInfo ??
906906
openAiModelInfoSaneDefaults),
@@ -945,7 +945,7 @@ const ApiOptions = ({
945945
}}
946946
onChange={handleInputChange("openAiCustomModelInfo", (e) => {
947947
const value = (e.target as HTMLInputElement).value
948-
const parsed = parseInt(value)
948+
const parsed = parseFloat(value)
949949
return {
950950
...(apiConfiguration?.openAiCustomModelInfo ||
951951
openAiModelInfoSaneDefaults),

0 commit comments

Comments
 (0)